]> git.koha-community.org Git - koha.git/commit
Bug 18055: Speed up '00-strict.t' test, with Parallel::ForkManager
authorMason James <mtj@kohaaloha.com>
Thu, 15 Jun 2017 13:20:05 +0000 (01:20 +1200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Mar 2018 18:53:12 +0000 (15:53 -0300)
commit735b4e0fc027f7e8a66640fe11174f709131160f
tree91f96eb63fe9e004488953297ab8aaa5899852c6
parentac38492107c14acd2651cae07beeb81a56d4f132
Bug 18055: Speed up '00-strict.t' test, with Parallel::ForkManager

add KOHA_PROVE_CPUS envar to manually set number of cpus

to test..

1/ set number of cpus to 1
 $ export KOHA_PROVE_CPUS=1

2/ observe 1 cpus are used
 $ time prove -v  t/db_dependent/00-strict.t
 t/db_dependent/00-strict.t ..
 Using 1 CPUs...

3/ unset number of cpus
 $ export KOHA_PROVE_CPUS=

4/ observe all available cpus are used
 $ time prove -v  t/db_dependent/00-strict.t
 t/db_dependent/00-strict.t ..
 Using 32 CPUs...

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/00-strict.t