[debian-edu-commits] debian-edu/ 01/01: Extend the test script to set TMP, TMPDIR, TEMP and TEMPDIR to the $ADTTMP value, to ensure all scripts use the same temp directory.

Petter Reinholdtsen pere at moszumanska.debian.org
Sun Sep 21 14:45:52 UTC 2014


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

pere pushed a commit to branch master
in repository debian-edu.

commit 92a8bd9d15e945637030f1619847887ac902d47b
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sun Sep 21 16:45:46 2014 +0200

    Extend the test script to set TMP, TMPDIR, TEMP and TEMPDIR to the $ADTTMP value, to ensure all scripts use the same temp directory.
---
 debian/changelog           | 2 ++
 debian/tests/test-metapkgs | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 72ce3d1..0534c72 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,8 @@ debian-edu (1.800~0.git.2014-09-11) unstable; urgency=low
     test.
   * Build-depend on blends-dev (>= 0.6.91) to ensure the
     debian/education-menus.postinst is not removed by the clean target.
+  * Extend the test script to set TMP, TMPDIR, TEMP and TEMPDIR to the
+    $ADTTMP value, to ensure all scripts use the same temp directory.
 
  -- Petter Reinholdtsen <pere at debian.org>  Thu, 11 Sep 2014 14:17:22 +0200
 
diff --git a/debian/tests/test-metapkgs b/debian/tests/test-metapkgs
index 89aa977..dca01c5 100644
--- a/debian/tests/test-metapkgs
+++ b/debian/tests/test-metapkgs
@@ -49,6 +49,12 @@ chroot_test() {
 LC_ALL=C
 export LC_ALL
 
+# Undo the effect of libpam-tmpdir in case it is active
+export TMP=$ADTTMP
+export TMPDIR=$ADTTMP
+export TEMP=$ADTTMP
+export TEMPDIR=$ADTTMP
+
 echo "info: File system status (/proc/mounts):"
 cat /proc/mounts
 echo

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



More information about the debian-edu-commits mailing list