|
@@ -273,7 +273,7 @@ def unittest_run(unittest_folder, options):
|
273
|
273
|
execution_level = report.TCEL_REVERSE_NAMED.get(options.execution_level, report.TCEL_FULL)
|
274
|
274
|
#
|
275
|
275
|
if sys.version_info.major in config.lib.__INTERPRETER__:
|
276
|
|
- print_header("Running Unittest with %s" % interpreter_version)
|
|
276
|
+ print_header("Running \"%s\" Unittest with %s" % (options.execution_level, interpreter_version))
|
277
|
277
|
print_action('Loading Testrun data from %s' % unittest_filename(unittest_folder, FILES['data-collection']))
|
278
|
278
|
with open(unittest_filename(unittest_folder, FILES['data-collection']), 'r') as fh:
|
279
|
279
|
data_collection = json.loads(fh.read())
|
|
@@ -456,11 +456,15 @@ def unittest_copy(unittest_folder):
|
456
|
456
|
|
457
|
457
|
|
458
|
458
|
def unittest_release(unittest_folder):
|
459
|
|
- with open(os.path.join(unittest_folder, 'src', 'config.py'), 'r') as fh:
|
|
459
|
+ unittest_uid = module_uid(os.path.join(unittest_folder, 'src', 'tests'))
|
|
460
|
+ config_file = os.path.join(unittest_folder, 'src', 'config.py')
|
|
461
|
+ print_header('Releasing unittest')
|
|
462
|
+ with open(config_file, 'r') as fh:
|
460
|
463
|
conf_file = fh.read()
|
461
|
|
- with open(os.path.join(unittest_folder, 'src', 'config.py'), 'w') as fh:
|
|
464
|
+ print_action('Setting release_unittest_version = %s in %s' % (unittest_uid, config_file))
|
|
465
|
+ with open(config_file, 'w') as fh:
|
462
|
466
|
for line in conf_file.splitlines():
|
463
|
467
|
if line.startswith('release_unittest_version'):
|
464
|
|
- fh.write("release_unittest_version = '%s'\n" % module_uid(os.path.join(unittest_folder, 'src', 'tests')))
|
|
468
|
+ fh.write("release_unittest_version = '%s'\n" % unittest_uid)
|
465
|
469
|
else:
|
466
|
470
|
fh.write(line + '\n')
|