show multi or single in diff filename

This commit is contained in:
Greg DiCristofaro 2021-02-22 10:14:56 -05:00
parent 4640589c51
commit 21b8efdc89

View File

@ -344,10 +344,13 @@ class TestRunner(object):
"""
copied = False
# string for whether or it is single user or multi user for diff
mu_su_str = "multi" if test_data.isMultiUser else "single"
for file in glob.glob(test_data.output_path + "/*-Diff.txt"):
# Eg. copies HTML-Report-Diff.txt to <Image-name>-HTML-Report-Diff.txt
shutil.copy(file, test_data.main_config.args.diff_files_output_folder +
"/" + test_data.image + "-" + os.path.basename(file))
"/" + test_data.image + "-" + mus_su_str + "-" + os.path.basename(file))
copied = True
if not copied:
print_report([], "NO DIFF FILES COPIED FROM " + test_data.output_path, "")