From dbcdf90df180f0505ed724fa6b6f3914d74875e5 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Thu, 10 Nov 2011 11:14:16 -0800 Subject: [PATCH] clean up for executor on each run --- tools/jenkins/configurations/kvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/jenkins/configurations/kvm.sh b/tools/jenkins/configurations/kvm.sh index e4c4bc5..9dfabfa 100755 --- a/tools/jenkins/configurations/kvm.sh +++ b/tools/jenkins/configurations/kvm.sh @@ -26,7 +26,8 @@ TOP_DIR=(pwd) # Name test instance based on executor BASE_NAME=executor-`printf "%02d" $EXECUTOR_NUMBER` GUEST_NAME=$BASE_NAME.$ADAPTER -virsh destroy `virsh list | grep $BASE_NAME | cut -d " " -f1` || true +virsh list | grep $BASE_NAME | cut -d " " -f1 | xargs -n 1 virsh destroy || true +virsh net-list | grep $BASE_NAME | cut -d " " -f1 | xargs -n 1 virsh net-destroy || true # Configure localrc cat <localrc