From 62d17e5d894d889092f0b9ca846f26623aa55107 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 12 Aug 2014 14:41:01 -0700 Subject: [PATCH] Collect javelin2 log As of Id5c0dfeaf8e7e9ed1d54f51c54e6e5c65b1361fa javelin will now log to the file javelin.log collect this log for debugging. Check for the files existence before attempting to collect to allow this patch to land before the grenade patch lands. Change-Id: I787c08506d9a4d12081b5b5b16d752d5147f8e72 --- functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.sh b/functions.sh index 7388c575..cc94ab2b 100644 --- a/functions.sh +++ b/functions.sh @@ -572,6 +572,9 @@ function cleanup_host { sudo rm $BASE/logs/grenade.sh.* sudo mv $BASE/logs/grenade/*.log $BASE/logs sudo rm -rf $BASE/logs/grenade + if [ -f $BASE/new/grenade/javelin.log ] ; then + sudo cp $BASE/new/grenade/javelin.log $BASE/logs/javelin.log + fi NEWLOGTARGET=$BASE/logs/new else