Added check for environment variable 'nonproductioneserver' before running
these tests.
This commit is contained in:
parent
9051471aef
commit
389747e90e
|
|
@ -1,4 +1,10 @@
|
|||
BEGIN { $| = 1; print "1..28\n";
|
||||
BEGIN {
|
||||
unless ($ENV{'nonproductionserver'}) {
|
||||
print "1..0 # Skipped: environment variable 'nonproductionserver' not set\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$| = 1; print "1..28\n";
|
||||
$::intranetdir=`grep intranetdir /etc/koha.conf`;
|
||||
chomp $::intranetdir;
|
||||
$::intranetdir=~s/\s*intranetdir\s*=\s*//i;
|
||||
|
|
@ -6,6 +12,8 @@ BEGIN { $| = 1; print "1..28\n";
|
|||
|
||||
END {print "not ok 1 test script load\n" unless $loaded;}
|
||||
|
||||
|
||||
|
||||
use lib $::intranetdir."/modules";
|
||||
$ENV{PERLLIB}=$::intranetdir."/modules";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
BEGIN { $| = 1; print "1..10\n";
|
||||
BEGIN {
|
||||
unless ($ENV{'nonproductionserver'}) {
|
||||
print "1..0 # Skipped: environment variable 'nonproductionserver' not set\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$| = 1; print "1..10\n";
|
||||
$::intranetdir=`grep intranetdir /etc/koha.conf`;
|
||||
chomp $::intranetdir;
|
||||
$::intranetdir=~s/\s*intranetdir\s*=\s*//i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue