1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00
samba-mirror/ctdb/tests/eventscripts/50.samba.monitor.112.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

14 lines
222 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "testparm times out"
setup_samba
export FAKE_TIMEOUT="yes"
required_result 1 <<EOF
ERROR: smb.conf cache create failed - testparm command timed out
EOF
simple_test