Collect output of pip freeze in the CI
Grealy simplifies debugging package conflicts. Change-Id: I6937800c73a914f4a2225cdea2c41d1f9ad8cec8
This commit is contained in:
parent
ef9cf1abb9
commit
8bf1d8dff1
@ -15,6 +15,15 @@ VERBOSE_LOGS="${VERBOSE_LOGS:-False}"
|
||||
echo "Making logs directory and collecting logs."
|
||||
[ -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
|
||||
sudo sh -c "cp /var/log/libvirt/baremetal_logs/testvm[[:digit:]]_console.log ${LOG_LOCATION}"
|
||||
sudo chown $USER ${LOG_LOCATION}/testvm[[:digit:]]_console.log
|
||||
|
Loading…
Reference in New Issue
Block a user