diff options
author | Mark Wells <mark@freeside.biz> | 2015-08-31 13:32:13 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-08-31 16:31:25 -0700 |
commit | fd62e5c7a94361229febd28bf84cdd0e65a7028a (patch) | |
tree | 7eecb450b861c4dedc9f55ee95d8c7541367d2f9 /FS-Test/bin/freeside-test-fetch | |
parent | 8cf56e1f1031f0a3bb1cebde402d14e98f204588 (diff) |
change test utils to run from the source tree, #37340
Diffstat (limited to 'FS-Test/bin/freeside-test-fetch')
-rwxr-xr-x | FS-Test/bin/freeside-test-fetch | 8 |
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; |