summaryrefslogtreecommitdiffstats
path: root/build-aux/test-runner
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:09 +0000
commit3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c (patch)
tree9532e637f47d6ff7246ccbabb62d4e2b4b5908df /build-aux/test-runner
parentAdding debian version 1.22.6. (diff)
downloaddpkg-3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c.tar.xz
dpkg-3c05da1bdef2a6e2142b4fcac974e7e3fc0db93c.zip
Merging upstream version 1.22.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux/test-runner')
-rwxr-xr-xbuild-aux/test-runner9
1 files changed, 9 insertions, 0 deletions
diff --git a/build-aux/test-runner b/build-aux/test-runner
index 73c33fb..d73369b 100755
--- a/build-aux/test-runner
+++ b/build-aux/test-runner
@@ -13,6 +13,14 @@ $ENV{LC_ALL} = 'C';
$ENV{DPKG_COLORS} = 'never';
$ENV{PATH} = "$binroot/src:$binroot/scripts:$binroot/utils:$ENV{PATH}";
+my %options;
+# XXX: We need force the file formatter to workaround verbose + parallel
+# not working correctly, as the console formatter eats the test output,
+# see <https://github.com/Perl-Toolchain-Gang/Test-Harness/issues/105>.
+if ($ENV{TEST_VERBOSE} && $ENV{TEST_PARALLEL} > 1) {
+ $options{formatter_class} = 'TAP::Formatter::File';
+}
+
my $harness = TAP::Harness->new({
exec => sub {
my (undef, $test) = @_;
@@ -27,6 +35,7 @@ my $harness = TAP::Harness->new({
verbosity => $ENV{TEST_VERBOSE},
jobs => $ENV{TEST_PARALLEL},
failures => 1,
+ %options,
});
my $aggregate = $harness->runtests(@ARGV);