Re: meson: Make test output much more useful on failure (both in CI and locally) - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: meson: Make test output much more useful on failure (both in CI and locally)
Date
Msg-id CAN4CZFMOBeKh51LqxjMGSSYHWTGPXAE33e+ZWnGgFKm21LJpfw@mail.gmail.com
Whole thread
In response to Re: meson: Make test output much more useful on failure (both in CI and locally)  ("Jelte Fennema-Nio" <postgres@jeltef.nl>)
Responses Re: meson: Make test output much more useful on failure (both in CI and locally)
List pgsql-hackers
- my $result = run_log($cmd);
- ok($result, $test_name);
+ my ($stdout, $stderr);
+ my $result = IPC::Run::run $cmd, '>' => \$stdout, '2>' => \$stderr;
+ ok($result, $test_name) or do
+ {
+ diag("---------- command failed ----------");
+ _diag_command_output($cmd, $stdout, $stderr);
+ };

Previously this printed a line about running the command even on
success, and the new version removes that. Was this intentional? It's
not mentioned in the commit message and that seems like a useful
feature to me.

For example:

Before:
grep "# Run" build/testrun/initdb/001_initdb/log/regress_log_001_initdb | wc -l
35

After:
grep "# Run" build/testrun/initdb/001_initdb/log/regress_log_001_initdb | wc -l
11



pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Add starelid, attnum to pg_stats and leverage this in pg_dump
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Change default value of default_toast_compression to "lz4", when