diff options
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-x | ctdb/tests/complex/30_nfs_tickle_killtcp.sh | 2 | ||||
-rwxr-xr-x | ctdb/tests/complex/31_nfs_tickle.sh | 2 | ||||
-rwxr-xr-x | ctdb/tests/complex/32_cifs_tickle.sh | 2 | ||||
-rwxr-xr-x | ctdb/tests/complex/34_nfs_tickle_restart.sh | 2 | ||||
-rwxr-xr-x | ctdb/tests/complex/36_smb_reset_server.sh | 2 | ||||
-rwxr-xr-x | ctdb/tests/complex/37_nfs_reset_server.sh | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/ctdb/tests/complex/30_nfs_tickle_killtcp.sh b/ctdb/tests/complex/30_nfs_tickle_killtcp.sh index d1e7d714646..40ec6babf2e 100755 --- a/ctdb/tests/complex/30_nfs_tickle_killtcp.sh +++ b/ctdb/tests/complex/30_nfs_tickle_killtcp.sh @@ -46,7 +46,7 @@ test_port=2049 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with netcat..." -nc -d -w 30 $test_ip $test_port & +sleep 30 | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" diff --git a/ctdb/tests/complex/31_nfs_tickle.sh b/ctdb/tests/complex/31_nfs_tickle.sh index c82d31dda1b..0b6990f8df9 100755 --- a/ctdb/tests/complex/31_nfs_tickle.sh +++ b/ctdb/tests/complex/31_nfs_tickle.sh @@ -54,7 +54,7 @@ test_port=2049 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with netcat..." -nc -d -w $(($monitor_interval * 4)) $test_ip $test_port & +sleep $((monitor_interval * 4)) | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" diff --git a/ctdb/tests/complex/32_cifs_tickle.sh b/ctdb/tests/complex/32_cifs_tickle.sh index da369b9f5f7..366824501da 100755 --- a/ctdb/tests/complex/32_cifs_tickle.sh +++ b/ctdb/tests/complex/32_cifs_tickle.sh @@ -52,7 +52,7 @@ test_port=445 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with netcat..." -nc -d -w $(($monitor_interval * 4)) $test_ip $test_port & +sleep $((monitor_interval * 4)) | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" diff --git a/ctdb/tests/complex/34_nfs_tickle_restart.sh b/ctdb/tests/complex/34_nfs_tickle_restart.sh index 6350db68c2e..2aab0614ff9 100755 --- a/ctdb/tests/complex/34_nfs_tickle_restart.sh +++ b/ctdb/tests/complex/34_nfs_tickle_restart.sh @@ -53,7 +53,7 @@ test_port=2049 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with netcat..." -nc -d -w 600 $test_ip $test_port & +sleep 600 | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" diff --git a/ctdb/tests/complex/36_smb_reset_server.sh b/ctdb/tests/complex/36_smb_reset_server.sh index 5723ac7e025..beff1a22014 100755 --- a/ctdb/tests/complex/36_smb_reset_server.sh +++ b/ctdb/tests/complex/36_smb_reset_server.sh @@ -52,7 +52,7 @@ sleep_for 5 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with nc..." -nc -d -w $(($monitor_interval * 4)) $test_ip $test_port & +sleep $((monitor_interval * 4)) | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" diff --git a/ctdb/tests/complex/37_nfs_reset_server.sh b/ctdb/tests/complex/37_nfs_reset_server.sh index d6dd0f03b1f..07bd034d6c7 100755 --- a/ctdb/tests/complex/37_nfs_reset_server.sh +++ b/ctdb/tests/complex/37_nfs_reset_server.sh @@ -52,7 +52,7 @@ sleep_for 5 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with nc..." -nc -d -w $(($monitor_interval * 4)) $test_ip $test_port & +sleep $((monitor_interval * 4)) | nc $test_ip $test_port & nc_pid=$! ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1" |