[Python-modules-commits] [pep8] 01/02: Change directory to $ADTTMP before running Debian tests

Ondřej Nový onovy-guest at moszumanska.debian.org
Tue Apr 19 20:07:45 UTC 2016


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

onovy-guest pushed a commit to branch master
in repository pep8.

commit 17c036631034c3fa9859048b0b45c82c9b95cf3f
Author: Ondřej Nový <novy at ondrej.org>
Date:   Tue Apr 19 22:06:59 2016 +0200

    Change directory to $ADTTMP before running Debian tests
---
 debian/changelog            | 1 +
 debian/tests/control        | 4 ++--
 debian/tests/smoketest-2.sh | 6 ++++--
 debian/tests/smoketest-3.sh | 8 +++++---
 4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 206dd14..d637438 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ pep8 (1.7.0-3) UNRELEASED; urgency=medium
 
   * Fixed homepage (https)
   * Fixed VCS URL (https)
+  * Change directory to $ADTTMP before running Debian tests
 
  -- Ondřej Nový <novy at ondrej.org>  Tue, 29 Mar 2016 21:46:12 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index 398ffcf..465cde5 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,6 @@
-Test-Command: python -c "import pep8; print pep8.__version__"
+Test-Command: cd "$ADTTMP" ; python -c "import pep8; print pep8.__version__"
 
-Test-Command: python3 -c "import pep8; print(pep8.__version__)"
+Test-Command: cd "$ADTTMP" ; python3 -c "import pep8; print(pep8.__version__)"
 
 Tests: smoketest-2.sh
 Depends: python-pep8
diff --git a/debian/tests/smoketest-2.sh b/debian/tests/smoketest-2.sh
index 4f86914..66b88b1 100644
--- a/debian/tests/smoketest-2.sh
+++ b/debian/tests/smoketest-2.sh
@@ -1,7 +1,9 @@
 #!/bin/sh
 
-cat > $ADTTMP/E40.py <<EOF
+cd "$ADTTMP"
+
+cat > E40.py <<EOF
 import os, sys
 EOF
 
-python -m pep8 $ADTTMP/E40.py | grep E401
+python -m pep8 E40.py | grep E401
diff --git a/debian/tests/smoketest-3.sh b/debian/tests/smoketest-3.sh
index 1d92880..b6fe078 100644
--- a/debian/tests/smoketest-3.sh
+++ b/debian/tests/smoketest-3.sh
@@ -1,8 +1,10 @@
 #!/bin/sh
 
-cat > $ADTTMP/E40.py <<EOF
+cd "$ADTTMP"
+
+cat > E40.py <<EOF
 import os, sys
 EOF
 
-python3 -m pep8 $ADTTMP/E40.py | grep E401
-pep8 $ADTTMP/E40.py | grep E401
+python3 -m pep8 E40.py | grep E401
+pep8 E40.py | grep E401

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pep8.git



More information about the Python-modules-commits mailing list