1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/50.samba.monitor.113.sh
Martin Schwenke 7d04778c82 ctdb-scripts: Improve error handling for 50.samba testparm failure
Also add tests.  Update testparm stub to fake error and timeout.  Add
timeout stub.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-08-07 05:33:29 +02:00

17 lines
247 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "testparm times out on 2nd time through"
setup_samba
ok_null
simple_test
export FAKE_TIMEOUT="yes"
ok <<EOF
WARNING: smb.conf cache update timed out - using old cache file
EOF
simple_test