[Rt-commit] r13782 - in rt/3.8/trunk: .
spang at bestpractical.com
spang at bestpractical.com
Thu Jul 3 15:36:18 EDT 2008
Author: spang
Date: Thu Jul 3 15:36:16 2008
New Revision: 13782
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/Test.pm
Log:
r43582 at loki: spang | 2008-07-03 17:00:09 +0100
generalize get_relocateable_dir()
Modified: rt/3.8/trunk/lib/RT/Test.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Test.pm (original)
+++ rt/3.8/trunk/lib/RT/Test.pm Thu Jul 3 15:36:16 2008
@@ -604,11 +604,10 @@
}
sub get_relocateable_dir {
- # takes a path relative to the top-level test dir and retuns
- # a path relative to the invocation path
+ # takes a path relative to the location of the test file and returns
+ # a path that takes the invocation path into account
(my $volume, my $directories, my $file) = File::Spec->splitpath($0);
- return File::Spec->catdir( File::Spec->curdir(), $directories,
- File::Spec->updir(), @_);
+ return File::Spec->catdir(File::Spec->curdir(), $directories, @_);
}
sub get_relocateable_file {
More information about the Rt-commit
mailing list