[Koha-bugs] [Bug 25018] Jenkins is not running the test with $ENV{_} eq 'prove'
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 30 10:21:14 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25018
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 102069
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=102069&action=edit
Bug 25018: Use new KOHA_TESTING envvar to detect environment testing
In some tests we want to know if we are in a testing environment.
When run the usual way, our trick works, the perl interpreter matches 'prove':
$ENV{_} eq 'prove'
In other situations, we have the KOHA_NO_TABLE_LOCKS environment variables, for
the SendCirculationAlert race conditions (see bug 15854 and bug 18364).
For unknown reasons, Jenkins runs the tests with /usr/bin/perl.
This patch suggests to rename KOHA_NO_TABLE_LOCKS and use KOHA_TESTING
instead, when prove is not used (or not correctly detected as it it the
case for Jenkins)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list