diff options
author | Mark Wells <mark@freeside.biz> | 2015-08-31 13:32:13 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-08-31 13:32:13 -0700 |
commit | e949bed143088a77ba89a56ff2a25609a1050159 (patch) | |
tree | 3fbb2d15053d3da66ab7d9a8adb242633275de35 /FS-Test/lib/FS/Test.pm | |
parent | 18b3f884eb44c9d0dea2cedc82c5788f7031e162 (diff) |
change test utils to run from the source tree, #37340
Diffstat (limited to 'FS-Test/lib/FS/Test.pm')
-rw-r--r-- | FS-Test/lib/FS/Test.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/FS-Test/lib/FS/Test.pm b/FS-Test/lib/FS/Test.pm index aedf502b5..bc9797779 100644 --- a/FS-Test/lib/FS/Test.pm +++ b/FS-Test/lib/FS/Test.pm @@ -4,14 +4,15 @@ use 5.006; use strict; use warnings FATAL => 'all'; -use File::ShareDir 'dist_dir'; +#use File::ShareDir 'dist_dir'; use WWW::Mechanize; use File::chdir; use URI; use File::Slurp qw(write_file); use Class::Accessor 'antlers'; +use File::Spec; -our $VERSION = '0.01'; +our $VERSION = '0.02'; =head1 NAME @@ -29,7 +30,11 @@ database image, the test plan, and probably other stuff. =cut sub share_dir { - dist_dir('FS-Test') +# dist_dir('FS-Test') +# we no longer install this anywhere + my @dirs = File::Spec->splitdir(File::Spec->rel2abs(__FILE__)); + splice @dirs, -3; # lib/FS/Test.pm + File::Spec->catdir( @dirs, 'share' ); } =item new OPTIONS |