mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
f2a9ba6976
The timeout for waiting for state changes isn't very predictable. It is "about" MonitorInterval seconds... but can be longer given the duration of eventscript runs and other things. So, we change the timeout to MonitorInterval + EventScriptTimeout, hoping it never takes that long. Move the eventscript installation/removal from the old fake-tests into a function in the functions file. Implement supporting functions to create/remove/check-for various files that it handles. Also add a function that uses all of this that waits for the next monitor event (but only if all other monitor events pass). The final check in the skip share check tests uses the above and waits for a monitor event, and then checks that the node is still healthy. Also enhance the wait_until function to handle a command starting with '!' (as a separate word) to make it easy to wait for a file not to exist. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 25e82a8a667a54c6921ef076c63fdd738dd75d19) |
||
---|---|---|
.. | ||
01_ctdb_nfs_skip_share_check.sh | ||
02_ctdb_samba_skip_share_check.sh | ||
31_nfs_tickle.sh | ||
32_cifs_tickle.sh | ||
33_gratuitous_arp.sh | ||
41_failover_ping_discrete.sh | ||
42_failover_ssh_hostname.sh | ||
43_failover_nfs_basic.sh | ||
44_failover_nfs_oneway.sh |