[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 03/03: t/runtests: Move "changes" artifacts into a subdir



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

nthykier pushed a commit to branch master
in repository lintian.

commit de7446b3a71b4523405a2e547bed91832f9a842b
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Mar 1 22:22:47 2014 +0100

    t/runtests: Move "changes" artifacts into a subdir
    
    For consistency with other suites.  No caching done, as "changes"
    artifacts are usually not built (and when they are, it is still
    cheap compared to all the other suites).
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/t/runtests b/t/runtests
index 801bf49..a6d6b1a 100755
--- a/t/runtests
+++ b/t/runtests
@@ -615,6 +615,9 @@ sub test_changes {
         }
     }
 
+    mkdir("$RUNDIR/changes")
+      if not -d "$RUNDIR/changes";
+
     msg_print "Running $testname $testdata->{version}... ";
 
     my $test = $testdata->{source};
@@ -632,15 +635,15 @@ sub test_changes {
         # (see #723805)
         @files
           = grep { !/\.(?:desc|tags)$/o } _glob($testdir, qr/\Q$test.\E.*/);
-        runsystem('cp', '-f', @files, "$RUNDIR/");
-        $file = "$RUNDIR/${test}.changes";
+        runsystem('cp', '-f', @files, "$RUNDIR/changes");
+        $file = "$RUNDIR/changes/${test}.changes";
         fill_in_tmpl($file, $testdata);
     }
 
-    run_lintian($testdata, $file, "$RUNDIR/tags.changes-$test");
+    run_lintian($testdata, $file, "$RUNDIR/changes/tags.$test");
 
     return _check_result($testdata, "$testdir/$test.tags",
-        "$RUNDIR/tags.changes-$test");
+        "$RUNDIR/changes/tags.$test");
 }
 
 # --------------

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


Reply to: