[strip-nondeterminism] 01/05: t/fixtures.t: Add comment why we use a per-fixture temporary directory.

Chris Lamb chris at chris-lamb.co.uk
Mon Sep 5 08:06:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit e4c264cb307f267f764fbdb13eeda5fa05ad43dc
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Sep 5 08:50:30 2016 +0100

    t/fixtures.t: Add comment why we use a per-fixture temporary directory.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 t/fixtures.t | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t/fixtures.t b/t/fixtures.t
index b0a5795..74ed7c2 100644
--- a/t/fixtures.t
+++ b/t/fixtures.t
@@ -34,7 +34,10 @@ my @fixtures = glob('t/fixtures/*/*.in');
 $File::StripNondeterminism::canonical_time = 1423159771;
 
 foreach my $filename (@fixtures) {
+	# Use a temporary directory per fixture so we can check whether any
+	# extraneous files are leftover.
 	my $temp = tempdir( CLEANUP => 1 );
+
 	my $in = "$temp/" . basename($filename, '.in');
 	(my $out = $filename) =~ s/\.in$/.out/;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git



More information about the Reproducible-commits mailing list