Skip to content

Commit df37dda

Browse files
author
Sirushti Murugesan
committed
Copy grenade saved files into the log directory
Configuration files are saved for posterity in the $SAVE directory. Copy them to the logs folder so that they are viewable in log.o.o Change-Id: I45894911c0ee9cd6c9b142d6192350269873d82f
1 parent ad6c5a2 commit df37dda

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

functions.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,13 @@ function cleanup_host {
705705
# grenade logs
706706
sudo cp $BASE/new/grenade/localrc $BASE/logs/grenade_localrc.txt
707707

708+
# grenade saved state files - resources created during upgrade tests
709+
# use this directory to dump arbitrary configuration/state files.
710+
if [ -d $BASE/save ]; then
711+
sudo mkdir -p $BASE/logs/grenade_save
712+
sudo cp -r $BASE/save/* $BASE/logs/grenade_save/
713+
fi
714+
708715
# grenade pluginrc - external grenade plugins use this file to
709716
# communicate with grenade, capture for posterity
710717
if -f [ $BASE/new/grenade/pluginrc ]; then

0 commit comments

Comments
 (0)