[Pkg-privacy-commits] [pyptlib] 110/136: Only run test files that actually contain tests

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:16 UTC 2015


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

infinity0 pushed a commit to branch master
in repository pyptlib.

commit 15c77c7aabfe3b027cfdc6e825e4910cefeb1ed5
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Sep 20 15:34:08 2013 +0200

    Only run test files that actually contain tests
---
 debian/rules                | 2 +-
 debian/tests/upstream-tests | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 67af3f9..16d38af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ override_dh_installdocs:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_test:
 	set -e && \
-	for test in $$(find pyptlib/test -type f -name '*.py'); do \
+	for test in $$(find pyptlib/test -type f -name 'test_*.py'); do \
 		PYTHONPATH=. python $$test; \
 	done
 endif
diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests
index 062ad80..737b568 100755
--- a/debian/tests/upstream-tests
+++ b/debian/tests/upstream-tests
@@ -2,6 +2,6 @@
 
 set -e
 
-for test in $(find pyptlib/test -type f -name '*.py'); do
+for test in $(find pyptlib/test -type f -name 'test_*.py'); do
 	python $test
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pyptlib.git



More information about the Pkg-privacy-commits mailing list