summaryrefslogtreecommitdiff
path: root/FS-Test/bin/freeside-test-fetch
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-08-31 13:32:13 -0700
committerMark Wells <mark@freeside.biz>2015-08-31 13:32:13 -0700
commite949bed143088a77ba89a56ff2a25609a1050159 (patch)
tree3fbb2d15053d3da66ab7d9a8adb242633275de35 /FS-Test/bin/freeside-test-fetch
parent18b3f884eb44c9d0dea2cedc82c5788f7031e162 (diff)
change test utils to run from the source tree, #37340
Diffstat (limited to 'FS-Test/bin/freeside-test-fetch')
-rwxr-xr-xFS-Test/bin/freeside-test-fetch8
1 files changed, 7 insertions, 1 deletions
diff --git a/FS-Test/bin/freeside-test-fetch b/FS-Test/bin/freeside-test-fetch
index ccc8528ff..953005704 100755
--- a/FS-Test/bin/freeside-test-fetch
+++ b/FS-Test/bin/freeside-test-fetch
@@ -1,8 +1,14 @@
#!/usr/bin/perl
use strict;
-use FS::Test;
use Getopt::Std;
+use File::Spec;
+
+my @dirs = File::Spec->splitdir(File::Spec->rel2abs(__FILE__));
+splice @dirs, -2; # bin/freeside-test-run
+push @INC, File::Spec->catdir( @dirs, 'lib' );
+eval "use FS::Test;";
+die $@ if $@;
my %opt;