ctdb-tests: Correctly cascade test failures from the end of pipes
authorAmitay Isaacs <amitay@gmail.com>
Thu, 5 Mar 2015 02:11:46 +0000 (13:11 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 5 Mar 2015 06:16:54 +0000 (07:16 +0100)
commit956d1dbfd91615032de337b0d84b40c16657b8c1
treeac500df5737afdb9459ded38ee73ed2e545cb43b
parent956e51707d7ddcff060352f54d11ff42bdcc51ef
ctdb-tests: Correctly cascade test failures from the end of pipes

Some eventscript unit test failures get lost because _passed=false is
set in the tail of a pipe.  Add a new function test_fail() and call it
when necessary to ensure the value of _passed is set correctly.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Mar  5 07:16:54 CET 2015 on sn-devel-104
ctdb/tests/eventscripts/scripts/local.sh
ctdb/tests/scripts/unit.sh