From bdab0447c2f149104e122e431aecb53c259f3119 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Sun, 20 Mar 2016 14:52:29 -0400 Subject: [PATCH] Collect all test VM console logs Presently the post-test information collection script is only collecting a single test virtual machine's console log. As the DHCP test operates with multiple VMs, we need to collect all console logs to help identify potential test failures. Change-Id: I8ddfb7870ea57b51f6340db4ba388c13cc35c059 --- scripts/collect-test-info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/collect-test-info.sh b/scripts/collect-test-info.sh index 03fc435a5..90d07a795 100755 --- a/scripts/collect-test-info.sh +++ b/scripts/collect-test-info.sh @@ -12,8 +12,8 @@ LOG_LOCATION="${WORKSPACE:-${SCRIPT_HOME}/..}/logs" echo "Making logs directory and collecting logs." [ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION} -sudo cp /var/log/libvirt/baremetal_logs/testvm1_console.log ${LOG_LOCATION} -sudo chown $USER ${LOG_LOCATION}/testvm1_console.log +sudo cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log ${LOG_LOCATION} +sudo chown $USER ${LOG_LOCATION}/testvm[[:digit:]]_console.log dmesg &> ${LOG_LOCATION}/dmesg.log # NOTE(TheJulia): Netstat exits with error code 5 when --version is used. sudo netstat -apn &> ${LOG_LOCATION}/netstat.log