|
@@ -26,14 +26,6 @@ except ImportError:
|
26
|
26
|
import shutil
|
27
|
27
|
|
28
|
28
|
|
29
|
|
-ARG_CLEAN = 'clean'
|
30
|
|
-ARG_RUN = 'run'
|
31
|
|
-ARG_FINALISE = 'finalise'
|
32
|
|
-ARG_TEX = 'tex'
|
33
|
|
-ARG_STATUS = 'status'
|
34
|
|
-ARG_COPY = 'copy'
|
35
|
|
-ARG_RELEASE = 'release'
|
36
|
|
-
|
37
|
29
|
FN_DATA_COLLECTION = 'unittest.json'
|
38
|
30
|
FN_TEX_REPORT = 'unittest.tex'
|
39
|
31
|
FN_PDF_REPORT = 'unittest.pdf'
|
|
@@ -161,8 +153,6 @@ class coverage_info(list):
|
161
|
153
|
def unittest(options, args, unittest_folder):
|
162
|
154
|
if 'release_testcases' in args:
|
163
|
155
|
unittest_release_testcases(unittest_folder)
|
164
|
|
- elif 'clean' in args:
|
165
|
|
- unittest_clean(unittest_folder)
|
166
|
156
|
elif 'prepare' in args:
|
167
|
157
|
unittest_prepare(unittest_folder)
|
168
|
158
|
elif 'testrun' in args:
|
|
@@ -190,13 +180,6 @@ def unittest_release_testcases(ut_folder):
|
190
|
180
|
fh.write(line + '\n')
|
191
|
181
|
|
192
|
182
|
|
193
|
|
-def unittest_clean(ut_folder):
|
194
|
|
- output.print_header('Cleaning up...')
|
195
|
|
- output.print_action('Testresults from last testrun')
|
196
|
|
- for fn in os.listdir(testresults_filename(ut_folder, '')):
|
197
|
|
- remove_file(testresults_filename(ut_folder, fn))
|
198
|
|
-
|
199
|
|
-
|
200
|
183
|
def unittest_prepare(ut_folder):
|
201
|
184
|
config = imp.load_source('', jsonlog.get_ut_config(ut_folder))
|
202
|
185
|
#
|