Skip to content

Commit

Permalink
Fix rerun name when compact_test_names is True
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Mar 15, 2022
1 parent e4a7776 commit f97103a
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'):
class_name = r['display_name'].split(' ')[0]
id = r['unique_name'].replace(class_name, '').replace('_', '@')
rerun_name = class_name + id
else:
rerun_name = r['unique_name']

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

Expand Down

0 comments on commit f97103a

Please sign in to comment.