diff --git a/reframe/frontend/statistics.py b/reframe/frontend/statistics.py index 4c3fb49537..5ac29ec0c6 100644 --- a/reframe/frontend/statistics.py +++ b/reframe/frontend/statistics.py @@ -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']}")