[Pkg-electronics-commits] [pcb] 08/15: don't fail test suite when tests are skipped
Bdale Garbee
bdale at moszumanska.debian.org
Wed Sep 6 15:11:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
bdale pushed a commit to branch master
in repository pcb.
commit 873c19b2b70b6f39732e97677d17c2613c778895
Author: Bdale Garbee <bdale at gag.com>
Date: Tue Sep 5 16:34:11 2017 -0600
don't fail test suite when tests are skipped
---
debian/patches/dont_fail_on_skipped_tests.diff | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/dont_fail_on_skipped_tests.diff b/debian/patches/dont_fail_on_skipped_tests.diff
new file mode 100644
index 0000000..15d2ba4
--- /dev/null
+++ b/debian/patches/dont_fail_on_skipped_tests.diff
@@ -0,0 +1,13 @@
+diff --git a/tests/run_tests.sh b/tests/run_tests.sh
+index 3cd80027..03886735 100755
+--- a/tests/run_tests.sh
++++ b/tests/run_tests.sh
+@@ -843,7 +843,7 @@ show_sep
+ echo "Passed $pass, failed $fail, skipped $skip out of $tot tests."
+
+ rc=0
+-if test $pass -ne $tot ; then
++if test $fail -gt 0 ; then
+ rc=1
+ fi
+
diff --git a/debian/patches/series b/debian/patches/series
index 047093b..7451324 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
desktop-file-main-category.diff
+dont_fail_on_skipped_tests.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/pcb.git
More information about the Pkg-electronics-commits
mailing list