diff --git a/t/db_dependent/00-strict.t b/t/db_dependent/00-strict.t index 4aa0a0cb26..131c76d048 100755 --- a/t/db_dependent/00-strict.t +++ b/t/db_dependent/00-strict.t @@ -39,12 +39,14 @@ $Test::Strict::TEST_STRICT = 0; $Test::Strict::TEST_SKIP = [ 'misc/kohalib.pl', 'misc/plack/koha.psgi' ]; my $ncpu; -if ( $ENV{KOHA_JENKINS} ) { - $ncpu = 2; # works fastest on kc.org jenkins box +if ( $ENV{KOHA_PROVE_CPUS} ) { + $ncpu = $ENV{KOHA_PROVE_CPUS} ; # set number of cpus to use } else { $ncpu = Sys::CPU::cpu_count(); } +print "Using $ncpu CPUs...\n"; + my $pm = new Parallel::ForkManager($ncpu); foreach my $d (@dirs) {