Always collect freezer.log when tests fail

While I330ca7b189d0d87cc8eff6c1b295a5f924bad475 fixed error reporting
for integration tests, it prevented the script from continuing to the
point that the freezer log file was copied when an error occurred.

This patch links the log to the log directory in advance to make sure
it will be uploaded to the server regardless of whether or not
devstack actually completes successfully.

Change-Id: I5c335d2a28d426693aa7379a7567272f4cee3c69
This commit is contained in:
Tim Buckley 2016-06-28 11:58:49 -06:00 committed by Deklan Dieterly
parent 4d8a3ceaf1
commit 9aa34db7fe
1 changed files with 5 additions and 3 deletions

View File

@ -15,6 +15,11 @@
set -ex
# Link the log file so it will be collected by the CI system
if [ -n "$BASE" ] && [ -d "$BASE/logs" ]; then
sudo ln -sf /home/tempest/.freezer/freezer.log $BASE/logs/freezer.log
fi
echo "Start Gate Hook"
export DEVSTACK_LOCAL_CONFIG="enable_plugin freezer https://git.openstack.org/openstack/freezer"
@ -24,7 +29,4 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service s-proxy s-object s-container
$BASE/new/devstack-gate/devstack-vm-gate.sh
# Copy log file so it will be collected by the CI system
sudo cp /home/tempest/.freezer/freezer.log $BASE/logs/
echo "End Gate Hook"