[Rt-commit] rt branch, 4.0/test-tempdirs, updated. rt-4.0.0-392-ga905eb4
Thomas Sibley
trs at bestpractical.com
Fri Jul 29 11:43:16 EDT 2011
The branch, 4.0/test-tempdirs has been updated
via a905eb46c3a4d74e42a412df587fea0413dc025f (commit)
from 86857277fe240a4701f305b0fb831dca255a95b5 (commit)
Summary of changes:
lib/RT/Test.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit a905eb46c3a4d74e42a412df587fea0413dc025f
Author: Thomas Sibley <trs at bestpractical.com>
Date: Fri Jul 29 11:42:07 2011 -0400
Minor nit -- don't create tmp dirs starting with a hyphen when we don't have a test file
diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 57bac30..b7a968b 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -214,14 +214,14 @@ sub bootstrap_tempdir {
if (File::Spec->rel2abs($0) =~ m{(?:^|[\\/])(x?t)[/\\](.*)}) {
$test_dir = $1;
- $test_file = $2;
+ $test_file = "$2-";
$test_file =~ s{[/\\]}{-}g;
}
my $dir_name = File::Spec->rel2abs("$test_dir/tmp");
mkpath( $dir_name );
return $tmp{'directory'} = File::Temp->newdir(
- "$test_file-XXXXXXXX",
+ "${test_file}XXXXXXXX",
DIR => $dir_name
);
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list