mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
3db572832e
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>
24 lines
382 B
Bash
Executable File
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"
|