java.py (1635:97afbb6c5a15) java.py (1654:fc7d0578e124)
1import glob
2import os
3import shutil
4import subprocess
5
6import pytest
7from conftest import option
8from unit.applications.proto import TestApplicationProto
9
10
11class TestApplicationJava(TestApplicationProto):
12 def load(self, script, name='app', **kwargs):
1import glob
2import os
3import shutil
4import subprocess
5
6import pytest
7from conftest import option
8from unit.applications.proto import TestApplicationProto
9
10
11class TestApplicationJava(TestApplicationProto):
12 def load(self, script, name='app', **kwargs):
13 app_path = self.temp_dir + '/java'
13 app_path = option.temp_dir + '/java'
14 web_inf_path = app_path + '/WEB-INF/'
15 classes_path = web_inf_path + 'classes/'
16 script_path = option.test_dir + '/java/' + script + '/'
17
18 if not os.path.isdir(app_path):
19 os.makedirs(app_path)
20
21 src = []

--- 71 unchanged lines hidden ---
14 web_inf_path = app_path + '/WEB-INF/'
15 classes_path = web_inf_path + 'classes/'
16 script_path = option.test_dir + '/java/' + script + '/'
17
18 if not os.path.isdir(app_path):
19 os.makedirs(app_path)
20
21 src = []

--- 71 unchanged lines hidden ---