Merge "Collect output of pip freeze in the CI"
This commit is contained in:
commit
fdeefa810f
|
@ -15,6 +15,15 @@ VERBOSE_LOGS="${VERBOSE_LOGS:-False}"
|
||||||
echo "Making logs directory and collecting logs."
|
echo "Making logs directory and collecting logs."
|
||||||
[ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION}
|
[ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION}
|
||||||
|
|
||||||
|
mkdir -p "$LOG_LOCATION/pip"
|
||||||
|
pip freeze > "$LOG_LOCATION/pip/freeze-default.log"
|
||||||
|
if which pip3 2> /dev/null; then
|
||||||
|
pip3 freeze > "$LOG_LOCATION/pip/freeze-pip3.log"
|
||||||
|
fi
|
||||||
|
if [ -n "$VENV" ]; then
|
||||||
|
$VENV/bin/pip freeze > "$LOG_LOCATION/pip/freeze-venv.log"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${TEST_VM_NODE_NAMES+x}" ]; then
|
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 chown $USER ${LOG_LOCATION}/testvm[[:digit:]]_console.log
|
||||||
|
|
Loading…
Reference in New Issue