projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scalar cgi param
[freeside.git]
/
FS-Test
/
bin
/
freeside-test-fetch
diff --git
a/FS-Test/bin/freeside-test-fetch
b/FS-Test/bin/freeside-test-fetch
index
ccc8528
..
9530057
100755
(executable)
--- a/
FS-Test/bin/freeside-test-fetch
+++ b/
FS-Test/bin/freeside-test-fetch
@@
-1,8
+1,14
@@
#!/usr/bin/perl
use strict;
#!/usr/bin/perl
use strict;
-use FS::Test;
use Getopt::Std;
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;
my %opt;