From 3a4de807957c338fcebb5e3305add4b6c88c53f6 Mon Sep 17 00:00:00 2001 From: Christopher Dryden Date: Wed, 24 Dec 2025 19:53:21 +0000 Subject: [PATCH] Enable pr-tests.pl with suppressed diff output --- util/build-gnu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 7691748fc80..c4bfac5600f 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -223,9 +223,9 @@ sed -i -e "s|---dis ||g" tests/tail/overlay-headers.sh # Do not FAIL, just do a regular ERROR "${SED}" -i -e "s|framework_failure_ 'no inotify_add_watch';|fail=1;|" tests/tail/inotify-rotate-resources.sh -# pr produces very long log and this command isn't super interesting -# SKIP for now -"${SED}" -i -e "s|my \$prog = 'pr';$|my \$prog = 'pr';CuSkip::skip \"\$prog: SKIP for producing too long logs\";|" tests/pr/pr-tests.pl +# pr-tests.pl: Override the comparison function to suppress diff output +# This prevents the test from overwhelming logs while still reporting failures +"${SED}" -i '/^my $fail = run_tests/i no warnings "redefine"; *Coreutils::_compare_files = sub { my ($p, $t, $io, $a, $e) = @_; my $d = File::Compare::compare($a, $e); warn "$p: test $t: mismatch\\n" if $d; return $d; };' tests/pr/pr-tests.pl # We don't have the same error message and no need to be that specific "${SED}" -i -e "s|invalid suffix in --pages argument|invalid --pages argument|" \