diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-09 09:32:32 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-10 23:16:29 +0100 |
commit | 835f3526a259947463286bf6e082134af2ab7d49 (patch) | |
tree | 66d3edfd9bb9b718219e71baa57bce32b23dfe99 /test/run_tests.pl | |
parent | Handle partial data re-sending on ktls/sendfile on FreeBSD (diff) | |
download | openssl-835f3526a259947463286bf6e082134af2ab7d49.tar.xz openssl-835f3526a259947463286bf6e082134af2ab7d49.zip |
test: turn off parallel tests in verbose mode.
The existing code prints a warning saying that verbose mode is ignored with
parallel jobs. This seems backward, more useful is disabling parallel jobs
when verbose is enabled.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14137)
Diffstat (limited to 'test/run_tests.pl')
-rw-r--r-- | test/run_tests.pl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/run_tests.pl b/test/run_tests.pl index 2be4e607a0..8e50d1bc90 100644 --- a/test/run_tests.pl +++ b/test/run_tests.pl @@ -46,8 +46,14 @@ my %tapargs = merge => 1, ); -$tapargs{jobs} = $jobs if $jobs > 1; -print "Using HARNESS_JOBS=$jobs\n" if $jobs > 1; +if ($jobs > 1) { + if ($ENV{HARNESS_VERBOSE}) { + print "Warning: HARNESS_JOBS > 1 ignored with HARNESS_VERBOSE\n"; + } else { + $tapargs{jobs} = $jobs; + print "Using HARNESS_JOBS=$jobs\n"; + } +} # Additional OpenSSL special TAP arguments. Because we can't pass them via # TAP::Harness->new(), they will be accessed directly, see the @@ -57,8 +63,6 @@ my %openssl_args = (); $openssl_args{'failure_verbosity'} = $ENV{HARNESS_VERBOSE} ? 0 : $ENV{HARNESS_VERBOSE_FAILURE_PROGRESS} ? 2 : 1; # $ENV{HARNESS_VERBOSE_FAILURE} -print "Warning: HARNESS_JOBS > 1 overrides HARNESS_VERBOSE\n" - if $jobs > 1 && $ENV{HARNESS_VERBOSE}; print "Warning: HARNESS_VERBOSE overrides HARNESS_VERBOSE_FAILURE*\n" if ($ENV{HARNESS_VERBOSE} && ($ENV{HARNESS_VERBOSE_FAILURE} || $ENV{HARNESS_VERBOSE_FAILURE_PROGRESS})); |