Skip to content

Commit

Permalink
Merge pull request #1547 from willend/main
Browse files Browse the repository at this point in the history
Take into acccount "suffix" if provided
  • Loading branch information
willend authored Jan 18, 2024
2 parents 3559fef + 78a20ec commit 797b284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/Python/mctest/mctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def run_default_test(testdir, mccoderoot, limit, instrfilter, suffix):
logging.info("")
results = mccode_test(mccoderoot, labeldir, limit, instrfilter)

reportfile = os.path.join(labeldir, "testresults_%s.json" % version)
reportfile = os.path.join(labeldir, "testresults_%s.json" % version+suffix)
open(os.path.join(reportfile), "w").write(json.dumps(results, indent=2))

logging.debug("")
Expand All @@ -456,7 +456,7 @@ def run_version_test(testdir, mccoderoot, limit, instrfilter, version, suffix):
finally:
deactivate_mccode_version(oldpath)

reportfile = os.path.join(labeldir, "testresults_%s.json" % version)
reportfile = os.path.join(labeldir, "testresults_%s.json" % version+suffix)
open(os.path.join(reportfile), "w").write(json.dumps(results, indent=2))

logging.debug("")
Expand Down Expand Up @@ -524,7 +524,7 @@ def get_config_files(configfltr):
results = mccode_test(mccoderoot, labeldir, limit, instrfilter, label0)

# write local test result
reportfile = os.path.join(labeldir, "testresults_%s.json" % label)
reportfile = os.path.join(labeldir, "testresults_%s.json" % label+suffix)
open(os.path.join(reportfile), "w").write(json.dumps(results, indent=2))

logging.debug("")
Expand Down

0 comments on commit 797b284

Please sign in to comment.