simplify cdash filename (#35509)

This commit is contained in:
Harmen Stoppels 2023-02-16 18:25:39 +01:00 committed by GitHub
parent df72ba0d46
commit 96ac4c7f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,14 +228,7 @@ def test_run(args):
def report_filename(args, test_suite):
if args.log_file:
if os.path.isabs(args.log_file):
return args.log_file
else:
log_dir = os.getcwd()
return os.path.join(log_dir, args.log_file)
else:
return os.path.join(os.getcwd(), "test-%s" % test_suite.name)
return os.path.abspath(args.log_file or "test-{}".format(test_suite.name))
def create_reporter(args, specs_to_test, test_suite):