[pytables] 05/15: Ensure that autopkgtest scripts return the correct exit code
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Fri Jun 30 18:07:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pytables.
commit 86571f3fbd43e68992cdbcfa1ad31cd7fad2ab3a
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Wed Jun 28 22:36:56 2017 +0200
Ensure that autopkgtest scripts return the correct exit code
---
debian/changelog | 2 ++
debian/tests/python2 | 2 +-
debian/tests/python2-dbg | 2 +-
debian/tests/python3 | 2 +-
debian/tests/python3-dbg | 2 +-
5 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 84b23e7..16d2991 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ pytables (3.4.2-1) UNRELEASED; urgency=medium
* New upstream release
* Standard version bumped to v4.0.0 (non change)
+ * Ensure that autopkgtest scripts return the correct exit code
+ (Closes: #864395)
-- Antonio Valentino <antonio.valentino at tiscali.it> Wed, 28 Jun 2017 20:25:32 +0000
diff --git a/debian/tests/python2 b/debian/tests/python2
index 56c0d1a..42f6674 100755
--- a/debian/tests/python2
+++ b/debian/tests/python2
@@ -8,5 +8,5 @@ cd "$ADTTMP"
for py in $PYS; do
echo "=== $py ==="
- $py -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
+ $py -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
done
diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg
index 1df3f6a..f7adb1d 100755
--- a/debian/tests/python2-dbg
+++ b/debian/tests/python2-dbg
@@ -8,5 +8,5 @@ cd "$ADTTMP"
for py in $PYS; do
echo "=== $py ==="
- $py-dbg -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
+ $py-dbg -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
done
diff --git a/debian/tests/python3 b/debian/tests/python3
index 13187cc..10531d3 100755
--- a/debian/tests/python3
+++ b/debian/tests/python3
@@ -8,5 +8,5 @@ cd "$ADTTMP"
for py in $PYS; do
echo "=== $py ==="
- $py -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
+ $py -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
done
diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg
index 122cc3c..a13c00f 100755
--- a/debian/tests/python3-dbg
+++ b/debian/tests/python3-dbg
@@ -8,5 +8,5 @@ cd "$ADTTMP"
for py in $PYS; do
echo "=== $py ==="
- $py-dbg -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
+ $py-dbg -c "import $TESTPKG, sys; sys.exit($TESTPKG.test(verbose=2))" 2>&1
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git
More information about the debian-science-commits
mailing list