Skip to content

Commit 2db7e2f

Browse files
author
Vasileios Karakasis
authored
Merge pull request #2471 from ekouts/bugfix/rerun_name
[bugfix] Make rerun prompt consistent with the new naming scheme
2 parents a446bfc + 36ab789 commit 2db7e2f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

reframe/frontend/statistics.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,14 @@ def print_failure_report(self, printer):
235235
f"{r['dependencies_actual']}")
236236
printer.info(f" * Maintainers: {r['maintainers']}")
237237
printer.info(f" * Failing phase: {r['fail_phase']}")
238-
printer.info(f" * Rerun with '-n {r['unique_name']}"
238+
if rt.runtime().get_option('general/0/compact_test_names'):
239+
cls = r['display_name'].split(' ')[0]
240+
variant = r['unique_name'].replace(cls, '').replace('_', '@')
241+
nameoptarg = cls + variant
242+
else:
243+
nameoptarg = r['unique_name']
244+
245+
printer.info(f" * Rerun with '-n {nameoptarg}"
239246
f" -p {r['environment']} --system {r['system']} -r'")
240247
printer.info(f" * Reason: {r['fail_reason']}")
241248

0 commit comments

Comments
 (0)