Fix tests dying in absence of bootstrap scripts.
[catagits/Gitalist.git] / t / scripts.t
index e39bd13..3e5eba6 100644 (file)
@@ -1,5 +1,11 @@
 use FindBin qw/$Bin/;
-BEGIN { do "$FindBin::Bin/../script/env" or die $@ }
+BEGIN {
+    my $env = "$FindBin::Bin/script/env";
+    if (-r $env) {
+        do $env or die $@;
+    }
+}
+
 
 use strict;
 use warnings;