Updates for tempest in functional tests
This commit does the following: - adds tempest_log_dir variable so that /var/log/utility is not assumed - adds oslo.concurrency and pyOpenSSL to tempest_pip_packages as tempest fails to run when it's built on the fly in a role's functional test Note that a subsequent change has been made to openstack-ansible to set tempest_log_dir to /var/log/utility. Additionally, this role needs to be refactored so we can install tempest similar to how other roles install their python software, which would cause us to not have to track tempest dependencies in tempest_pip_packages. Depends-On: I907b7b416cf03d88c9b015b3265a216c51a0c7da Change-Id: I74ee0f4df3066338f0810c322387399ba1a93a6b
This commit is contained in:
parent
eb8f634445
commit
53b790902c
|
@ -93,7 +93,9 @@ tempest_pip_packages:
|
|||
- fixtures
|
||||
- junitxml
|
||||
- nose
|
||||
- oslo.concurrency
|
||||
- oslo.serialization
|
||||
- pyOpenSSL
|
||||
- python-ceilometerclient
|
||||
- python-cinderclient
|
||||
- python-glanceclient
|
||||
|
@ -126,3 +128,5 @@ tempest_enable_instance_password: True
|
|||
|
||||
## Tunable overrides
|
||||
tempest_tempest_conf_overrides: {}
|
||||
|
||||
tempest_log_dir: "/var/log/tempest"
|
||||
|
|
|
@ -194,9 +194,9 @@ result=$?
|
|||
# Create junit xml report from test results
|
||||
testr last --subunit | subunit2junitxml > tempest_results.xml
|
||||
cp tempest_results.xml /tmp
|
||||
if [ -d "/var/log/utility" ];then
|
||||
# Copy the log to the utility logging directory
|
||||
cp tempest_results.xml /var/log/utility/tempest_results_$(date +%Y%d%m-%H%M%S).xml
|
||||
if [ -d "{{ tempest_log_dir }}" ];then
|
||||
# Copy the log to the tempest_log_dir logging directory
|
||||
cp tempest_results.xml {{ tempest_log_dir }}/tempest_results_$(date +%Y%d%m-%H%M%S).xml
|
||||
fi
|
||||
popd
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
debug = {{ debug }}
|
||||
verbose = {{ verbose }}
|
||||
fatal_deprecations = {{ tempest_fatal_deprecations }}
|
||||
log_file = /var/log/utility/tempest.log
|
||||
log_file = {{ tempest_log_dir}}/tempest.log
|
||||
use_stderr = false
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue