Dump docker daemon logs before finish

This make the docker daemon logs available to the CI system.

Change-Id: I36ef41396e6c1d56f6b7cfe773b588d4892aa8b2
This commit is contained in:
Hongbin Lu 2017-07-04 22:45:46 +00:00
parent 1f79d17844
commit 90a817f14d
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ echo_summary "Devstack-plugin-container's post_test_hook.sh was called..."
# Verify that Docker is installed correctly by running the hello-world image # Verify that Docker is installed correctly by running the hello-world image
sudo -H -u stack docker run hello-world sudo -H -u stack docker run hello-world
# Copy over docker systemd unit journals.
mkdir -p $WORKSPACE/logs
sudo journalctl -o short-precise --unit docker | sudo tee $WORKSPACE/logs/docker.txt > /dev/null
EXIT_CODE=$? EXIT_CODE=$?
$XTRACE $XTRACE