copy_logs: save gem list output

It would be helpful when debugging beaker or p-o-i jobs to have the list
of gems so we can easily compare with previous CI runs and make a diff
very quickly.

Change-Id: I6801c18fe345378b15b5f5be9ff0c5e9124bfa1a
This commit is contained in:
Emilien Macchi 2017-03-24 08:25:43 -04:00
parent 8fd7c7ffcb
commit f0b44a2815

View File

@ -187,6 +187,10 @@ if [ `command -v rpm` ]; then
yum repolist -v > $LOG_DIR/repolist.txt
fi
if [ `command -v gem` ]; then
gem list |sort > $LOG_DIR/gem-list.txt
fi
# system status & informations
sudo cp /root/openrc $LOG_DIR/openrc.txt
sudo chmod 777 $LOG_DIR/openrc.txt