From 7f45e6b766b6aac6290498c975f516883e5aff49 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 10 Jun 2015 08:50:56 -0400 Subject: [PATCH] collect grenade pluginrc if it exists This collects the grenade pluginrc (used by external grenade plugins) if it exists. Maybe be an important part of understanding failures. Change-Id: I2fe62a2ab649ebad39fd9d9c25091798e7dc4ed3 --- functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.sh b/functions.sh index 6bcb1a53..79c78cfc 100644 --- a/functions.sh +++ b/functions.sh @@ -661,6 +661,13 @@ function cleanup_host { # grenade logs sudo cp $BASE/new/grenade/localrc $BASE/logs/grenade_localrc.txt + + # grenade pluginrc - external grenade plugins use this file to + # communicate with grenade, capture for posterity + if -f [ $BASE/new/grenade/pluginrc ]; then + sudo cp $BASE/new/grenade/pluginrc $BASE/logs/grenade_pluginrc.txt + fi + # grenade logs directly and uses similar timestampped files to # devstack. So temporarily copy out & rename the latest log # files from the short-symlinks into grenade/, clean-up left