Displaying 1 result from an estimated 1 matches for "show_libvirt_log".
2010 Jan 12
1
[PATCH] Adds the qemu log to the autotest output.
...est.sh
index 7503be0..5ccdbbb 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -41,8 +41,9 @@
 
 ME=$(basename "$0")
 WORKDIR=$(mktemp -d)
+
 warn() { printf '%s: %s\n' "$ME" "$*" >&2; }
-die() {  warn "$*"; exit 1; }
+die() { warn "$*"; show_libvirt_log; exit 1; }
 debug() { if $debugging; then log "[DEBUG] %s" "$*"; fi }
 
 trap '__st=$?; cleanup_after_testing; exit $__st' 1 2 3 13 15
@@ -69,6 +70,15 @@ Usage: $ME [-n test_name] [LOGFILE]
 EOF
 }
 
+# $1 - the nodename
+show_libvirt_log () {
+    local logfile=/var/log...