From 21b8efdc8941fa1bf751afa64370aa19f719d0ba Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Mon, 22 Feb 2021 10:14:56 -0500 Subject: [PATCH] show multi or single in diff filename --- test/script/regression.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/script/regression.py b/test/script/regression.py index 097e4a099d..e217ef8694 100644 --- a/test/script/regression.py +++ b/test/script/regression.py @@ -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 -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, "")