projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.20 (RT#13852)
[freeside.git]
/
rt
/
sbin
/
rt-test-dependencies.in
diff --git
a/rt/sbin/rt-test-dependencies.in
b/rt/sbin/rt-test-dependencies.in
index
8681054
..
66215ad
100644
(file)
--- a/
rt/sbin/rt-test-dependencies.in
+++ b/
rt/sbin/rt-test-dependencies.in
@@
-55,9
+55,13
@@
use strict;
use warnings;
no warnings qw(numeric redefine);
use Getopt::Long;
use warnings;
no warnings qw(numeric redefine);
use Getopt::Long;
+use Cwd qw(abs_path);
my %args;
my %deps;
my @orig_argv = @ARGV;
my %args;
my %deps;
my @orig_argv = @ARGV;
+# Save our path because installers or tests can change cwd
+my $script_path = abs_path($0);
+
GetOptions(
\%args, 'v|verbose',
'install!', 'with-MYSQL',
GetOptions(
\%args, 'v|verbose',
'install!', 'with-MYSQL',
@@
-417,7
+421,7
@@
foreach my $type (sort grep $args{$_}, keys %args) {
}
if ( $args{'install'} && keys %Missing_By_Type ) {
}
if ( $args{'install'} && keys %Missing_By_Type ) {
- exec($
0
, @orig_argv, '--no-install');
+ exec($
script_path
, @orig_argv, '--no-install');
}
else {
conclude(%Missing_By_Type);
}
else {
conclude(%Missing_By_Type);