[numexpr] 06/08: Ensure that test script return the correct exit code

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Wed Jun 28 20:22:29 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 numexpr.

commit 59f65df2ff9e1325c5f8d36e0684fa594106aad1
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Wed Jun 28 19:30:47 2017 +0000

    Ensure that test script return the correct exit code
---
 debian/changelog     | 4 +++-
 debian/tests/python2 | 2 +-
 debian/tests/python3 | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e4b13ff..7f84ad9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,13 +7,15 @@ numexpr (2.6.2-1) UNRELEASED; urgency=medium
       0002-numpy-1.12-compatibility.patch: applied upstream
   * Drop -dbg package declaration (now debug packages are automatically
     generated) 
+  * debian/tests/python*:
+    - ensure that the test script returns the correct exit code
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 28 Jun 2017 18:52:05 +0000
 
 numexpr (2.6.1-4) unstable; urgency=medium
 
   * debian/patches
-    - better version parsing in 0002-numpy-1.12-compatibility.patch.
+    - better version parsing in 0002-numpy-1.12-compatibility.patch./
       Fix compatibility with numpy 1.12 (Closes: #852906)
 
  -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 28 Jan 2017 10:32:00 +0000
diff --git a/debian/tests/python2 b/debian/tests/python2
index 66e5a43..b460d45 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()" 2>&1
+    $py -c "import $TESTPKG, sys; r=$TESTPKG.test(); sys.exit(0 if r.wasSuccessful() else 1)" 2>&1
 done
diff --git a/debian/tests/python3 b/debian/tests/python3
index 13f4625..3026e07 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()" 2>&1
+    $py -c "import $TESTPKG, sys; r=$TESTPKG.test(); sys.exit(0 if r.wasSuccessful() else 1)" 2>&1
 done

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



More information about the debian-science-commits mailing list