scripts: collect-test-info: Fix cp command when collecting VM logs

Fixes: 431b768929 ("scripts: Fix shell expansion when collecting VM logs")
Change-Id: I4edf4eeb9118df8c2bd219d23bde85a74e1375c5
This commit is contained in:
Markos Chandras 2018-10-16 09:28:56 +01:00
parent 95c3103d97
commit 6db1bee4c3
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ echo "Making logs directory and collecting logs."
[ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION}
if [ -z "${TEST_VM_NODE_NAMES+x}" ]; then
sudo sh -c "cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log" ${LOG_LOCATION}
sudo sh -c "cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log ${LOG_LOCATION}"
sudo chown $USER ${LOG_LOCATION}/testvm[[:digit:]]_console.log
sudo chmod o+r ${LOG_LOCATION}/testvm[[:digit:]]_console.log
else