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
This commit is contained in:
parent
2bbe254017
commit
bdab0447c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user