Displaying 3 results from an estimated 3 matches for "preserve_vm".
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...+++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/autotest.sh b/autotest.sh
index c9f8a2d..b72ec98 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -219,6 +219,9 @@ stop_networking () {
networkname=${NETWORK_NAME-}
fi
+ # exit if preserve was enabled
+ if $preserve_vm; then return; fi
+
if [ -n "${networkname}" ]; then
debug "Destroying network interface: ${networkname}"
check=$(sudo virsh net-list --all)
@@ -388,6 +391,9 @@ destroy_node () {
local nodename=$1
local undefine=${2-true}
+ # if preserving no...
2009 Dec 15
1
[PATCH] The autotest timeout is now a command line configurable option.
...quot;
expect -c '
-set timeout 120
+set timeout '${timeout_period}'
log_file stateful-pxe.log
send_log "Restarted node, booting from hard disk.\n"
@@ -704,13 +705,15 @@ isofile="${PWD}/ovirt-node-image.iso"
show_viewer=false
vm_prefix="$$"
preserve_vm=false
+timeout_period="120"
-while getopts di:n:pvwh c; do
+while getopts di:n:pt:vwh c; do
case $c in
d) debugging=true;;
i) isofile=($OPTARG);;
n) tests=($OPTARG);;
- p) preserve_vm=true;;
+ p) preserve_vm=true;;
+ t) timeout_period=($OPTA...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...lse)
+stop_networking () {
+ local networkname=${1-}
+ local stop_dnsmasq=${2-true}
+
+ # if no network was supplied, then check for the global network
+ if [ -z "$networkname" ]; then
+ networkname=${NETWORK_NAME-}
+ fi
+
+ # exit if preserve was enabled
+ if $preserve_vm; then return; fi
+
+ if [ -n "${networkname}" ]; then
+ debug "Destroying network interface: ${networkname}"
+ check=$(sudo virsh net-list --all)
+ if [[ "${check}" =~ "${networkname}" ]]; then
+ if [[ "{$check}" =...