[dh-r] 01/01: Simplify run-unit-test template using $AUTOPKGTEST_TMP for tmp directory.
Sébastien Villemot
sebastien at debian.org
Fri Nov 17 09:40:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository dh-r.
commit b708050b13e8d2ca77ed4fba891076081f394c8d
Author: Sébastien Villemot <sebastien at debian.org>
Date: Fri Nov 17 10:38:18 2017 +0100
Simplify run-unit-test template using $AUTOPKGTEST_TMP for tmp directory.
---
scripts/dh-make-R | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/scripts/dh-make-R b/scripts/dh-make-R
index 96b6bfd..5030f2a 100755
--- a/scripts/dh-make-R
+++ b/scripts/dh-make-R
@@ -212,12 +212,8 @@ my $test_run_unit_test = <<"EOF";
pkgname=$desc->{Package}
debname=$debname
-if [ "\$ADTTMP" = "" ] ; then
- ADTTMP=`mktemp -d /tmp/\${debname}-test.XXXXXX`
- trap "rm -rf \$ADTTMP" 0 INT QUIT ABRT PIPE TERM
-fi
-cd \$ADTTMP
-cp -a /usr/share/doc/\$debname/tests/* \$ADTTMP
+cd \$AUTOPKGTEST_TMP
+cp -a /usr/share/doc/\$debname/tests/* \$AUTOPKGTEST_TMP
gunzip -r *
for testfile in *.R; do
echo "BEGIN TEST \$testfile"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dh-r.git
More information about the debian-science-commits
mailing list