search for: setup_for_testing

Displaying 4 results from an estimated 4 matches for "setup_for_testing".

2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...l nodename=$1 local undefine=${2-true} + # if preserving nodes then exit + if $preserve_vm; then return; fi + if [ -n "${nodename}" ]; then check=$(sudo virsh list --all) if [[ "${check}" =~ "${nodename}" ]]; then @@ -670,6 +676,7 @@ setup_for_testing () { NODE_ADDRESS=$NETWORK.100 debug "NODE_ADDRESS=${NODE_ADDRESS}" DNSMASQ_PID=0 + debug "preserve_vm=${preserve_vm}" } # cleans up any loose ends @@ -691,12 +698,14 @@ debugging=false isofile="${PWD}/ovirt-node-image.iso" show_viewer=false vm...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...- send_log "\nMarker not found.\n\n" - exit 1 + send_log "\nMarker not found.\n\n" + exit 1 } eof { - send_log "Unexpected end of file." - exit 2 + send_log "Unexpected end of file." + exit 2 } } @@ -676,13 +674,15 @@ setup_for_testing () { # cleans up any loose ends cleanup_after_testing () { + debug "Cleaning up" stop_dnsmasq stop_networking # destroy any running vms vm_list=$(sudo virsh list --all | awk '/'${vm_prefix}-'/ { print $2 }') test -n "$vm_list" &amp...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...nd_log "Unexpected end of file." +exit 2 + } +} + +send_log "\n\nUnexpected end of interaction.\n\n" + +exit 3' + +result=$? + fi + + destroy_node $nodename + stop_networking $IFACE_NAME true + + return $result + +} + +# configures the environment for testing +setup_for_testing () { + debug "WORKDIR=${WORKDIR}" + debug "isofile=${isofile}" + debug "isoname=${isoname}" + IFACE_NAME=testbr$$ + debug "IFACE_NAME=${IFACE_NAME}" + NETWORK=192.168.$(echo "scale=0; print $$ % 255" | bc -l) + debug "NETWO...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
All temporary files are kept in a single directory. At the end of the autotests that one directory is deleted. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- autotest.sh | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/autotest.sh b/autotest.sh index c9f8a2d..d658cf3 100755 --- a/autotest.sh +++ b/autotest.sh @@ -40,6 +40,7 @@ # an