[Python-modules-commits] r22330 - in packages/sphinx/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Wed Jun 27 08:59:15 UTC 2012


    Date: Wednesday, June 27, 2012 @ 08:59:13
  Author: jwilk
Revision: 22330

DEP-8 tests: use $ADTTMP.

Modified:
  packages/sphinx/trunk/debian/changelog
  packages/sphinx/trunk/debian/tests/python-sphinx
  packages/sphinx/trunk/debian/tests/python3-sphinx

Modified: packages/sphinx/trunk/debian/changelog
===================================================================
--- packages/sphinx/trunk/debian/changelog	2012-06-27 08:55:18 UTC (rev 22329)
+++ packages/sphinx/trunk/debian/changelog	2012-06-27 08:59:13 UTC (rev 22330)
@@ -1,3 +1,9 @@
+sphinx (1.1.3+dfsg-5) UNRELEASED; urgency=low
+
+  * DEP-8 tests: use $ADTTMP.
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 27 Jun 2012 10:58:59 +0200
+
 sphinx (1.1.3+dfsg-4) unstable; urgency=low
 
   * Add DEP-8 tests.

Modified: packages/sphinx/trunk/debian/tests/python-sphinx
===================================================================
--- packages/sphinx/trunk/debian/tests/python-sphinx	2012-06-27 08:55:18 UTC (rev 22329)
+++ packages/sphinx/trunk/debian/tests/python-sphinx	2012-06-27 08:59:13 UTC (rev 22330)
@@ -1,13 +1,10 @@
 #!/bin/sh
 set -e -u
-tmpdir=$(mktemp -t -d sphinx.test.XXXXXXXX)
-cp -r tests "$tmpdir/"
-cd "$tmpdir"
+cp -r tests "$ADTTMP/"
+cd "$ADTTMP"
 pyversions -i \
 | tr ' ' '\n' \
 | xargs -I {} env PYTHONWARNINGS=d {} \
   /usr/bin/nosetests --verbose 2>&1
-cd /
-rm -rf "$tmpdir"
 
 # vim:ts=4 sw=4 et

Modified: packages/sphinx/trunk/debian/tests/python3-sphinx
===================================================================
--- packages/sphinx/trunk/debian/tests/python3-sphinx	2012-06-27 08:55:18 UTC (rev 22329)
+++ packages/sphinx/trunk/debian/tests/python3-sphinx	2012-06-27 08:59:13 UTC (rev 22330)
@@ -1,14 +1,11 @@
 #!/bin/sh
 set -e -u
-tmpdir=$(mktemp -t -d sphinx.test.XXXXXXXX)
-cp -r tests "$tmpdir/"
-2to3-$(py3versions -vd) --no-diffs -w -n "$tmpdir/tests/" 2>&1
-cd "$tmpdir"
+cp -r tests "$ADTTMP/"
+2to3-$(py3versions -vd) --no-diffs -w -n "$ADTTMP/tests/" 2>&1
+cd "$ADTTMP"
 py3versions -i \
 | tr ' ' '\n' \
 | xargs -I {} env PYTHONWARNINGS=d {} \
   /usr/bin/nosetests3 --verbose 2>&1
-cd /
-rm -rf "$tmpdir"
 
 # vim:ts=4 sw=4 et




More information about the Python-modules-commits mailing list