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

[lintian] 01/02: t/runtests: Remove template source after creating the file



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

nthykier pushed a commit to branch master
in repository lintian.

commit 9a0e1b09f45bc00c6344b4071070e9d33316705a
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 9 10:11:30 2016 +0000

    t/runtests: Remove template source after creating the file
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/runtests b/t/runtests
index 5729248..6f11d88 100755
--- a/t/runtests
+++ b/t/runtests
@@ -386,6 +386,7 @@ sub test_package {
         foreach my $tfile (@{ $TEMPLATES{$suite} }) {
             if (not -e "$targetdir/$tfile" and -f "$targetdir/${tfile}.in") {
                 fill_in_tmpl("$targetdir/$tfile", $testdata);
+                unlink("$targetdir/${tfile}.in");
             }
         }
 
@@ -597,6 +598,7 @@ sub generic_test_runner {
         foreach my $tfile (@{ $TEMPLATES{$suite} }) {
             if (not -e "$targetdir/$tfile" and -f "$targetdir/${tfile}.in") {
                 fill_in_tmpl("$targetdir/$tfile", $testdata);
+                unlink("$targetdir/${tfile}.in");
             }
         }
 

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


Reply to: