mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
tests/eventscripts: Fix -X tracing in iterate_test()
... and delete a bogus comment. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 0e2b5a8f89440a53f996482ac0c98b31a4f2cad3)
This commit is contained in:
parent
02dd1bf00f
commit
d82c0ef923
@ -792,11 +792,6 @@ EOF
|
||||
|
||||
# Any args are passed to the eventscript.
|
||||
|
||||
# Eventscript tracing can be done by setting:
|
||||
# EVENTSCRIPTS_TESTS_TRACE="sh -x"
|
||||
|
||||
# or similar. This will almost certainly make a test fail but is
|
||||
# useful for debugging.
|
||||
simple_test ()
|
||||
{
|
||||
[ -n "$event" ] || die 'simple_test: $event not set'
|
||||
@ -901,7 +896,11 @@ iterate_test ()
|
||||
shift 2
|
||||
fi
|
||||
|
||||
_out=$($EVENTSCRIPTS_TESTS_TRACE "${CTDB_BASE}/events.d/$script" "$event" $args 2>&1)
|
||||
_trace=""
|
||||
if $TEST_COMMAND_TRACE ; then
|
||||
_trace="sh -x"
|
||||
fi
|
||||
_out=$($_trace "${CTDB_BASE}/events.d/$script" "$event" $args 2>&1)
|
||||
_rc=$?
|
||||
|
||||
if [ -n "$OUT_FILTER" ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user