Displaying 7 results from an estimated 7 matches for "destroy_nod".
Did you mean:
destroy_node
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...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 nodes then exit
+ if $preserve_vm; then return; fi
+
if [ -n "${nodename}" ]; then
check=$(sudo virsh list --all)
if [[ "${check}" =~ "${nodename}" ]]; then
@@ -...
2009 May 19
1
[PATCH node-image] Fixing the autotest script.
...send_log "Unexpected end of file."
+ send_log "Unexpected end of file."
exit 2
}
-
- send_log \"\n\nUnexpected end of interaction.\n\n\"
- exit 3
}
-'
+send_log "\n\nUnexpected end of interaction.\n\n"
+exit 3'
result=$?
destroy_node $nodename
@@ -513,14 +510,14 @@ expect {
return $result
}
-add_test "test_stateless_pxe"
-test_stateless_pxe () {
- local nodename="${vm_prefix}-stateless-pxe"
+add_test "test_stateless_pxe_with_nohd"
+test_stateless_pxe_with_nohd () {
+ local nodename=&...
2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...8-}
+ local result=""
+
+ # flexible options
+ # define defaults, then allow the caller to override them as needed
+ local arch=$(uname -i)
+ local serial="true"
+ local vncport="-1"
+ local bootdev='hd'
+
+ # first destroy the node
+ destroy_node $nodename
+
+ if [ -n "$options" ]; then eval "$options"; fi
+
+ debug "define_node ()"
+ for var in filename nodename memory harddrive cddrive bridge options arch serial vncport bootdev; do
+eval debug "::$var: \$$var"
+ done
+
+ result="...
2010 Jan 12
1
[PATCH] Adds the qemu log to the autotest output.
...+# $1 - the nodename
+show_libvirt_log () {
+ local logfile=/var/log/libvirt/qemu/$1.log
+
+ printf "\n[${logfile}]\n"
+ sudo cat $logfile
+ printf "[${logfile}]\n\n"
+}
+
# $1 - the test function to call
execute_test () {
local testname=$1
@@ -404,6 +414,8 @@ destroy_node () {
sudo virsh undefine $nodename > /dev/null 2>&1
fi
fi
+
+ show_libvirt_log $nodename
fi
}
--
1.6.5.2
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...teful_pxe"
test_stateful_pxe () {
local nodename="${vm_prefix}-stateful-pxe"
- local workdir=$(mktemp -d)
+ local workdir=$WORKDIR
local ipaddress=${NODE_ADDRESS}
for var in nodename workdir ipaddress; do
@@ -683,6 +684,7 @@ cleanup_after_testing () {
destroy_node $vm
done
stop_networking
+ rm -rf $WORKDIR
}
# check commandline options
@@ -715,7 +717,7 @@ set +u
if [ $# -gt 0 -a -n "$1" ]; then RESULTS=$1; else RESULTS=autotest.log; fi
set -u
-result_file=$(mktemp)
+result_file=$WORKDIR/results.log
debug "result_file=${r...
2007 Sep 17
4
Xenstored: eliminate double free and fixes for memory leak
Please review. This patch fixes a few problems:
a. In handle_input(), which is called from main() in
xenstored_core.c, the conn->in is freed when there is no error, but
conn is freed when there is error. This is inconsistent. Moreover,
the conn is freed again upon exit from handle_input(), inside the
main.
b. Another problem is that perms_to_strings() returned a allocated
memory (via
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...struct.h:133)
==10132== by 0x8521224: std::_Rb_tree<llvm::Pass*, std::pair<llvm::Pass*
const, llvm::Timer>, std::_Select1st<std::pair<llvm::Pass* const,
llvm::Timer> >, std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass*
const, llvm::Timer> >
>::destroy_node(std::_Rb_tree_node<std::pair<llvm::Pass* const, llvm::Timer>
>*) (stl_tree.h:640)
==10132== by 0x851E92D: std::_Rb_tree<llvm::Pass*, std::pair<llvm::Pass*
const, llvm::Timer>, std::_Select1st<std::pair<llvm::Pass* const,
llvm::Timer> >, std::less<llvm::Pass*&...