1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventd/eventd_051.sh
Amitay Isaacs 3db572832e ctdb-tests: Explicitly search for the specific log entry
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12792

... instead of expecting the last line to be the matching log entry.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2017-05-15 04:07:13 +02:00

24 lines
382 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "logging check"
cat > "$eventd_scriptdir/01.test" <<EOF
#!/bin/sh
echo "Running event \$1"
EOF
chmod +x "$eventd_scriptdir/01.test"
setup_eventd
required_result 0 <<EOF
EOF
simple_test run monitor 30
required_result 0 <<EOF
ctdb-eventd[PID]: 01.test: Running event monitor
EOF
unit_test grep "01.test:" "$eventd_logfile"