[med-svn] [concavity] 01/01: Use ADTTMP instead of WORKDIR

Andreas Tille tille at debian.org
Tue Apr 19 06:01:58 UTC 2016


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

tille pushed a commit to branch master
in repository concavity.

commit d38886882231991737b48195cd62d2263e0d8ab8
Author: Andreas Tille <tille at debian.org>
Date:   Tue Apr 19 08:01:38 2016 +0200

    Use ADTTMP instead of WORKDIR
---
 debian/tests/installation-test | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/tests/installation-test b/debian/tests/installation-test
index 4cdaa38..cbebe98 100755
--- a/debian/tests/installation-test
+++ b/debian/tests/installation-test
@@ -7,12 +7,14 @@ set -e
 
 pkg=concavity
 
-WORKDIR=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
-trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
 
-cd $WORKDIR
+cd $ADTTMP
 # Does not work
-# cp -R "${0%/*}/../../examples" $WORKDIR
+# cp -R "${0%/*}/../../examples" $ADTTMP[<0;60;11M
 # use examples out of package which also helps users to reproduce the test as example
 cp -a /usr/share/doc/${pkg}/examples/* .
 find . -type f -name "*.gz" -exec gunzip \{\} \;

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



More information about the debian-med-commit mailing list