Run Tempest plugins
We want to run Tempest tests for a maximum of projects we're testing. Tests are moving from Tempest tree to projects tree. It takes care of installing tempest-lib which is required system wide to run Tempest plugin tests. To run tests from projects tree, we need to run tox with -eall-plugin option. This patch aims to change the way we run tox. It also set manage_tests_packages to True so puppet-tempest will take care of packaging dependencies required to run Tempest plugins tests in RDO. Depends-On: Iac9a57c2ba006bb2a660d2b54ee05bbe68125abf Depends-On: I8f26968b5b817ffbb9f4dc4a0cb19ca0a1ef7d3d Change-Id: I0942a7c9456d18528a2d84e143ae056973a7674f
This commit is contained in:
parent
dd5700f42d
commit
9c5c8689d3
@ -107,6 +107,7 @@ class openstack_integration::tempest (
|
||||
img_file => 'cirros-0.3.4-x86_64-disk.img',
|
||||
compute_build_interval => 10,
|
||||
ca_certificates_file => $::openstack_integration::params::ca_bundle_cert_path,
|
||||
manage_tests_packages => true,
|
||||
# TODO(emilien) optimization by 1/ using Hiera to configure Glance image source
|
||||
# and 2/ if running in the gate, use /home/jenkins/cache/files/ cirros image.
|
||||
# img_dir => '/home/jenkins/cache/files',
|
||||
|
@ -129,6 +129,9 @@ $SUDO rm -f /tmp/openstack/tempest/cirros-0.3.4-x86_64-disk.img
|
||||
# TODO(emilien) later, we should use local image if present. That would be a next iteration.
|
||||
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -P /tmp/openstack/tempest
|
||||
|
||||
# Tempest plugin tests require tempest-lib to be installed
|
||||
$SUDO pip install tempest-lib
|
||||
|
||||
set +e
|
||||
# Select what to test:
|
||||
# Smoke suite
|
||||
@ -145,8 +148,9 @@ TESTS="${TESTS} TelemetryAlarming"
|
||||
# https://bugs.launchpad.net/ironic/+bug/1554237
|
||||
TESTS="${TESTS} api.baremetal.admin.test_drivers"
|
||||
|
||||
cd /tmp/openstack/tempest; tox -eall -- --concurrency=2 $TESTS
|
||||
cd /tmp/openstack/tempest
|
||||
tox -eall-plugin -- --concurrency=2 $TESTS
|
||||
RESULT=$?
|
||||
set -e
|
||||
/tmp/openstack/tempest/.tox/all/bin/testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
|
||||
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
|
||||
exit $RESULT
|
||||
|
Loading…
x
Reference in New Issue
Block a user