diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:30:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:30:08 +0000 |
commit | 44cf9c6d2d274eac37502e835155f7e985f1b8e6 (patch) | |
tree | 9576ba968924c5b9a55ba9e14f4f26184c62c7d4 /build-aux/test-runner | |
parent | Adding upstream version 1.22.6. (diff) | |
download | dpkg-44cf9c6d2d274eac37502e835155f7e985f1b8e6.tar.xz dpkg-44cf9c6d2d274eac37502e835155f7e985f1b8e6.zip |
Adding upstream version 1.22.7.upstream/1.22.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux/test-runner')
-rwxr-xr-x | build-aux/test-runner | 9 |
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); |