sanitycheck: document that --save-tests appends to existing file
Fix --help message. Also rename run_report() to save_tests() as it's
used only once by --save-tests and nowhere else. Maybe the code was
shared with some --other-report feature in the past but not any more.
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 37929f8..3d2a821 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -2371,7 +2371,7 @@
return self.goals
- def run_report(self, filename):
+ def save_tests(self, filename):
with open(filename, "at") as csvfile:
fieldnames = ['path', 'test', 'platform', 'arch']
cw = csv.DictWriter(csvfile, fieldnames, lineterminator=os.linesep)
@@ -2816,7 +2816,7 @@
"--save-tests",
metavar="FILENAME",
action="store",
- help="Save list of tests and platforms to be run to file.")
+ help="Append list of tests and platforms to be run to file.")
parser.add_argument(
"-b", "--build-only", action="store_true",
@@ -3302,7 +3302,7 @@
key=cmp_to_key(native_and_unit_first)))
if options.save_tests:
- ts.run_report(options.save_tests)
+ ts.save_tests(options.save_tests)
return
if options.subset: