From: Martin Schwenke Date: Fri, 17 Mar 2023 00:05:19 +0000 (+1100) Subject: ctdb-tests: Enhance timeout stub X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=902258569072a24c7c973df9d8d65269694afb18;p=thirdparty%2Fsamba.git ctdb-tests: Enhance timeout stub Allow it to trigger on a particular command instead of unconditionally. Wrap setting and clearing the variable. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/UNIT/eventscripts/50.samba.monitor.112.sh b/ctdb/tests/UNIT/eventscripts/50.samba.monitor.112.sh index f71447206f2..0e240a37615 100755 --- a/ctdb/tests/UNIT/eventscripts/50.samba.monitor.112.sh +++ b/ctdb/tests/UNIT/eventscripts/50.samba.monitor.112.sh @@ -6,7 +6,7 @@ define_test "testparm times out" setup -export FAKE_TIMEOUT="yes" +timeout_trigger "yes" required_result 1 <