[lintian] 02/02: t/runtests: Move some variable declarations
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 31d3c718cdc656add4234645a37cbe5d908d5eac
Author: Niels Thykier <niels@thykier.net>
Date: Fri Feb 28 22:51:58 2014 +0100
t/runtests: Move some variable declarations
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/runtests | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/runtests b/t/runtests
index 45ba48f..ef721b7 100755
--- a/t/runtests
+++ b/t/runtests
@@ -437,7 +437,6 @@ sub test_package {
my $rundir = "$RUNDIR/$suite/$pkg";
my $origdir = "$TESTSET/$suite/$testname";
my $targetdir = "$rundir/$pkgdir";
- my $tmpldir = "$TESTSET/templates/$suite/";
my $is_native = ($testdata->{type} eq 'native');
my $orig_version = $testdata->{version};
@@ -471,10 +470,12 @@ sub test_package {
}
if (not up_to_date($stampfile, $origdir)) {
+ my $tmpldir = "$TESTSET/templates/$suite/";
+ my $skel = $testdata->{skeleton};
+
print "Cleaning up and repopulating $targetdir...\n" if $DEBUG;
runsystem_ok('rm', '-rf', $rundir);
runsystem_ok('mkdir', '-p', $rundir);
- my $skel = $testdata->{skeleton};
unless ($is_native) {
copy_template_dir("$tmpldir/${skel}.upstream",
"$origdir/upstream/",$targetdir);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: