[Debian-ha-commits] [pcs] 01/01: debian/tests: detect testsuite failures

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 28 17:11:22 UTC 2016


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

vvidic-guest pushed a commit to branch master
in repository pcs.

commit a0226e01717c8194206bc90d728f29510f6d9b34
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Tue Jun 28 18:11:45 2016 +0200

    debian/tests: detect testsuite failures
---
 debian/tests/testsuite-pcs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/tests/testsuite-pcs b/debian/tests/testsuite-pcs
index 3842e69..9896770 100755
--- a/debian/tests/testsuite-pcs
+++ b/debian/tests/testsuite-pcs
@@ -9,4 +9,7 @@ cat >>/etc/hosts <<EOF
 192.168.1.3 rh7-3
 EOF
 
-python /usr/lib/python2.7/dist-packages/pcs/test/suite.py 2>&1
+if python /usr/lib/python2.7/dist-packages/pcs/test/suite.py 2>&1 | grep -20 FAIL
+then
+  exit 1
+fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pcs.git



More information about the Debian-HA-Commits mailing list