[Git][ghc/ghc][wip/sjakobi/T16720] 2 commits: testsuite: Put rerun hint after result details
Simon Jakobi pushed to branch wip/sjakobi/T16720 at Glasgow Haskell Compiler / GHC Commits: 47d04b79 by Simon Jakobi at 2026-07-18T16:29:46+02:00 testsuite: Put rerun hint after result details Keep detailed unexpected-result sections together and emit the TEST rerun command as the final item before SUMMARY. Assisted-by: gpt-5.6-sol via Codex CLI - - - - - 4933f5aa by Simon Jakobi at 2026-07-18T18:54:23+02:00 testsuite: Reword omitted failure output heading Put the excessive-result threshold before the omitted-output explanation to make the heading easier to scan. Assisted-by: gpt-5.6-sol via Codex CLI - - - - - 1 changed file: - testsuite/driver/testlib.py Changes: ===================================== testsuite/driver/testlib.py ===================================== @@ -3569,15 +3569,11 @@ def summary(t: TestRun, file: TextIO, color=False, junit_path: Optional[Path]=No printTestOutputSummary(file, t.unexpected_failures, color, junit_path) else: where = '; see {}'.format(junit_path) if junit_path else '' - header = ('Unexpected failures (output omitted, more than {}{}):' + header = ('Unexpected failures (more than {}, output omitted{}):' .format(MAX_SUMMARY_OUTPUT_TESTS, where)) file.write(colored_if(color, Color.RED, header) + '\n') printTestInfosSummary(file, t.unexpected_failures) - printUnexpectedTests(file, - [t.unexpected_passes, t.unexpected_failures, - t.unexpected_stat_failures, t.framework_failures], color) - if t.unexpected_passes: header = 'Unexpected passes:' file.write(colored_if(color, Color.RED, header) + '\n') @@ -3602,6 +3598,10 @@ def summary(t: TestRun, file: TextIO, color=False, junit_path: Optional[Path]=No warning = 'WARNING: Testsuite run was terminated early' file.write(colored_if(color, Color.YELLOW, warning) + '\n') + printUnexpectedTests(file, + [t.unexpected_passes, t.unexpected_failures, + t.unexpected_stat_failures, t.framework_failures], color) + if len(t.unexpected_failures) > 0 or \ len(t.unexpected_stat_failures) > 0 or \ len(t.unexpected_passes) > 0 or \ View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9b495cba96fe8077f12a6228590f546... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9b495cba96fe8077f12a6228590f546... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Simon Jakobi (@sjakobi2)