clean up for executor on each run
This commit is contained in:
parent
484dd55125
commit
dbcdf90df1
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ TOP_DIR=(pwd)
|
||||||
# Name test instance based on executor
|
# Name test instance based on executor
|
||||||
BASE_NAME=executor-`printf "%02d" $EXECUTOR_NUMBER`
|
BASE_NAME=executor-`printf "%02d" $EXECUTOR_NUMBER`
|
||||||
GUEST_NAME=$BASE_NAME.$ADAPTER
|
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
|
# Configure localrc
|
||||||
cat <<EOF >localrc
|
cat <<EOF >localrc
|
||||||
|
|
Loading…
Reference in a new issue