Write tests log to a separate file

Change-Id: I18649c24cb048c4ef5dbab85272975dad7584cd1
This commit is contained in:
Sagi Shnaidman 2022-01-26 14:20:28 +02:00
parent cb396cf03d
commit 6ed02eff2d
2 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,10 @@
devstack_services:
designate: true
neutron-dns: true
zuul_copy_output:
'{{ devstack_log_dir }}/test_output.log': 'logs'
extensions_to_txt:
log: true
- job:
name: ansible-collections-openstack-functional-devstack-octavia

View File

@ -131,8 +131,9 @@ fi
SDK_VER=$(python -c "import openstack; print(openstack.version.__version__)")
pushd ci/
# run tests
set -o pipefail
ANSIBLE_COLLECTIONS_PATHS=$TEST_COLLECTIONS_PATHS ansible-playbook \
-vvv ./run-collection.yml \
-e "sdk_version=${SDK_VER} cloud=${CLOUD} image=${IMAGE} ${ANSIBLE_VARS}" \
${tag_opt}
${tag_opt} 2>&1 | sudo tee /opt/stack/logs/test_output.log
popd