Skip to content

Commit

Permalink
Merge pull request #2471 from ekouts/bugfix/rerun_name
Browse files Browse the repository at this point in the history
[bugfix] Make rerun prompt consistent with the new naming scheme
  • Loading branch information
Vasileios Karakasis authored Mar 15, 2022
2 parents a446bfc + 36ab789 commit 2db7e2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reframe/frontend/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,14 @@ def print_failure_report(self, printer):
f"{r['dependencies_actual']}")
printer.info(f" * Maintainers: {r['maintainers']}")
printer.info(f" * Failing phase: {r['fail_phase']}")
printer.info(f" * Rerun with '-n {r['unique_name']}"
if rt.runtime().get_option('general/0/compact_test_names'):
cls = r['display_name'].split(' ')[0]
variant = r['unique_name'].replace(cls, '').replace('_', '@')
nameoptarg = cls + variant
else:
nameoptarg = r['unique_name']

printer.info(f" * Rerun with '-n {nameoptarg}"
f" -p {r['environment']} --system {r['system']} -r'")
printer.info(f" * Reason: {r['fail_reason']}")

Expand Down

0 comments on commit 2db7e2f

Please sign in to comment.