Update test-birfrost to limit log lines

test-birfrost notes that only the last 1000 lines of some log files
will be output, but uses cat to dump the entire file. This patch limits
output to 1000 lines.

Change-Id: I02fce16edd9d1494a7bee3c534db4c264923a12d
This commit is contained in:
Chris Krelle 2015-06-02 10:38:24 -07:00 committed by Julia Kreger
parent 2994425544
commit 0609604ec8

View File

@ -42,10 +42,10 @@ if [ $EXITCODE != 0 ]; then
sudo iptables -L -n -v
echo "*************************"
echo "Ironic API log, last 1000 lines:"
sudo cat /var/log/upstart/ironic-api.log
sudo tail -n 1000 /var/log/upstart/ironic-api.log
echo "*************************"
echo "Ironic Conductor log, last 1000 lines:"
sudo cat /var/log/upstart/ironic-conductor.log
sudo tail -n 1000 /var/log/upstart/ironic-conductor.log
echo "Making logs directory and collecting logs."
mkdir ../logs
sudo cp /var/log/libvirt/baremetal_logs/testvm1_console.log ../logs/