From 6a8468ad6393c6da6c765843a475d1eb1ceaf82f Mon Sep 17 00:00:00 2001 From: Frank Liepold Date: Wed, 29 Jan 2014 12:07:47 +0100 Subject: [PATCH] test_suite: fix: kill all running test scripts even in resource_quick_prepare_first_resource --- test_suite/scripts/modules/38_resource.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_suite/scripts/modules/38_resource.sh b/test_suite/scripts/modules/38_resource.sh index 22dab029..e113b659 100644 --- a/test_suite/scripts/modules/38_resource.sh +++ b/test_suite/scripts/modules/38_resource.sh @@ -46,6 +46,7 @@ function resource_quick_prepare_first_resource if [ $net_clear_iptables_in_prepare_phase -eq 1 ]; then net_clear_iptables_all fi + resource_kill_all_scripts cluster_rmmod_mars_all cluster_clear_and_mount_mars_dir_all cluster_insert_mars_module_all @@ -662,6 +663,7 @@ function resource_kill_all_scripts { local host for host in "${main_host_list[@]}"; do + lib_vmsg " killing all $main_prefix_scripts scripts on $host" lib_remote_idfile $host 'for p in $(pgrep -f '"$main_prefix_scripts"'); do if [ $p -ne $$ ] && ps -p $p >/dev/null; then echo killing:; ps -fp $p; kill -9 $p; fi; done' done }