summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventd/eventd_022.sh
blob: 3f1c4f66c16d3e4d671584b8338e7ca866cace33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "status output in debug script"

setup_eventd

required_error ETIMEDOUT <<EOF
Event verbosetimeout in random timed out
EOF
simple_test run 5 random verbosetimeout

# wait for debug hung script
sleep 5

ok <<EOF
01.disabled          DISABLED  
02.enabled           TIMEDOUT   DATETIME
  OUTPUT: Sleeping for 99 seconds
EOF
unit_test cat "${CTDB_BASE}/debug_script.log"