Capture service logs in litmus tests

This change allows gathering logs of OpenStack services in litmus
tests, so that we can check behavior of each services more in detail.

Change-Id: I9e0fe04e6786e1b8b73448c3d85255ffd39804ec
This commit is contained in:
Takashi Kajinami 2022-03-08 00:27:40 +09:00
parent d1f691e0a3
commit 3bb7ae978a
2 changed files with 5 additions and 8 deletions

View File

@ -34,12 +34,12 @@ LOG_DIR=$WORKSPACE/logs
#
# For right now, we populate our projects with a guess from those that
# have puppet modules installed. revisit this if needs change
if [ -d /etc/puppetlabs/code ]; then
# puppet4
PUPPET_MODULES_PATH='/etc/puppetlabs/code/modules'
if [ -d "${WORKSPACE}/spec/fixtures/modules" ]; then
# Litmus job
PUPPET_MODULES_PATH="${WORKSPACE}/spec/fixtures/modules"
else
# puppet3
PUPPET_MODULES_PATH='/etc/puppet/modules'
# Integration job
PUPPET_MODULES_PATH='/etc/puppetlabs/code/modules'
fi
for project in $PUPPET_MODULES_PATH/*; do

View File

@ -5,9 +5,6 @@
cmd: |
set -e
function trap_exit_sig() {
# NOTE(tobias-urdin): Litmus does not execute spec_clean rake task after a run.
$GEM_BIN_DIR/bundle exec rake spec_clean
{{ ansible_user_dir }}/workspace/puppet-openstack-integration/copy_logs.sh
}
trap trap_exit_sig EXIT