[Python-modules-commits] [speechrecognition-python] 03/03: Fix autopkgtests

Ethan Ward ethanward-guest at moszumanska.debian.org
Sun Sep 3 04:17:02 UTC 2017


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

ethanward-guest pushed a commit to branch master
in repository speechrecognition-python.

commit 3b5a95eb0a30215e1f53a6b7352be22fa0dfdb29
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date:   Sat Sep 2 23:16:32 2017 -0500

    Fix autopkgtests
---
 debian/tests/control | 8 +++++---
 debian/tests/py2     | 4 +++-
 debian/tests/py3     | 6 ++++--
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 0b677ae..957b27a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,7 +1,9 @@
 Tests: py2
 Depends: python-all,
-         python-speechrecognition
+         python-speechrecognition,
+         flac
 
 Tests: py3
-Depends: python-all,
-         python3-speechrecognition
+Depends: python3-all,
+         python3-speechrecognition,
+         flac
diff --git a/debian/tests/py2 b/debian/tests/py2
index dab8777..c2fbdb9 100644
--- a/debian/tests/py2
+++ b/debian/tests/py2
@@ -6,5 +6,7 @@ cp -r tests "$AUTOPKGTEST_TMP"
 for py in $(pyversions -r 2>/dev/null)
  do cd "$AUTOPKGTEST_TMP"
  echo "Testing with $py:"
- $py -m unittest discover tests/ '*test.py'
+ export GOOGLE_TEST_SKIP=1
+ export POCKETSPHINX_TEST_SKIP=1
+ $py -m unittest discover 2>/dev/null
  done
diff --git a/debian/tests/py3 b/debian/tests/py3
index dab8777..0bbd010 100644
--- a/debian/tests/py3
+++ b/debian/tests/py3
@@ -3,8 +3,10 @@
 set -e
 
 cp -r tests "$AUTOPKGTEST_TMP"
-for py in $(pyversions -r 2>/dev/null)
+for py in $(py3versions -r 2>/dev/null)
  do cd "$AUTOPKGTEST_TMP"
  echo "Testing with $py:"
- $py -m unittest discover tests/ '*test.py'
+ export GOOGLE_TEST_SKIP=1
+ export POCKETSPHINX_TEST_SKIP=1
+ $py -m unittest discover 2>/dev/null
  done

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



More information about the Python-modules-commits mailing list