From 0609604ec88e74d6b7d4842aee279be6b3f0f8e9 Mon Sep 17 00:00:00 2001 From: Chris Krelle Date: Tue, 2 Jun 2015 10:38:24 -0700 Subject: [PATCH] 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 --- scripts/test-bifrost.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh index 55ae76f60..9723d8715 100755 --- a/scripts/test-bifrost.sh +++ b/scripts/test-bifrost.sh @@ -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/