summaryrefslogtreecommitdiffstats
path: root/build-aux/test-runner
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);