[Rt-commit] rt branch, 4.0/refactor-temp-dir-in-test, updated. rt-4.0.2-182-g9262c1f
Alex Vandiver
alexmv at bestpractical.com
Tue Oct 4 15:13:02 EDT 2011
The branch, 4.0/refactor-temp-dir-in-test has been updated
via 9262c1fe32b8fd6ada942676a1e89195302cf6cc (commit)
via c923dd49cc1d68f77ce64d5cb8b7ae468008470c (commit)
from d91f69a645bee3f74b2e86e9f06648b1433b1c02 (commit)
Summary of changes:
t/ticket/linking.t | 2 +-
t/ticket/scrips_batch.t | 2 +-
t/web/attachment_encoding.t | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit c923dd49cc1d68f77ce64d5cb8b7ae468008470c
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Oct 4 14:30:53 2011 -0400
Use the test-specific tempdir for all file storage
diff --git a/t/web/attachment_encoding.t b/t/web/attachment_encoding.t
index 5506bbd..bfbf245 100644
--- a/t/web/attachment_encoding.t
+++ b/t/web/attachment_encoding.t
@@ -45,7 +45,7 @@ diag 'test with attachemnts' if $ENV{TEST_VERBOSE};
{
my $file =
- File::Spec->catfile( File::Spec->tmpdir, encode_utf8 'é件.txt' );
+ File::Spec->catfile( RT::Test->temp_directory, encode_utf8 'é件.txt' );
open( my $fh, '>', $file ) or die $!;
binmode $fh, ':utf8';
print $fh 'é件';
commit 9262c1fe32b8fd6ada942676a1e89195302cf6cc
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Oct 4 14:32:21 2011 -0400
Use slightly more descriptive filenames for tempfiles
diff --git a/t/ticket/linking.t b/t/ticket/linking.t
index bf95efa..1bd83d6 100644
--- a/t/ticket/linking.t
+++ b/t/ticket/linking.t
@@ -13,7 +13,7 @@ use_ok('RT::Scrips');
use_ok('RT::Scrip');
-my $filename = File::Spec->catfile( RT::Test->temp_directory, 'temp' );
+my $filename = File::Spec->catfile( RT::Test->temp_directory, 'link_count' );
open my $fh, '>', $filename or die $!;
close $fh;
diff --git a/t/ticket/scrips_batch.t b/t/ticket/scrips_batch.t
index 8294cc4..44d7f8e 100644
--- a/t/ticket/scrips_batch.t
+++ b/t/ticket/scrips_batch.t
@@ -39,7 +39,7 @@ my $sid;
is value_name($form, "Scrip-$sid-Template"), 'Global template: Blank', 'correct template';
is value_name($form, "Scrip-$sid-Stage"), 'TransactionBatch', 'correct stage';
- my $tmp_fn = File::Spec->catfile( RT::Test->temp_directory, 'temp' );
+ my $tmp_fn = File::Spec->catfile( RT::Test->temp_directory, 'transactions' );
open my $tmp_fh, '+>', $tmp_fn or die $!;
my $code = <<END;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list