90ec7883c7
Now Tempest tests are not running with our Tempest jobs. Tempest commit https://review.openstack.org/#/c/123589/ has changed Tempest tox jobs, so we need to use another tox job to be able to run our Tempest tests. Change-Id: I166637916347e03010781e4ca97fd901a6181b48
42 lines
1.5 KiB
Bash
Executable File
42 lines
1.5 KiB
Bash
Executable File
#!/bin/bash -xe
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# This script is executed inside post_test_hook function in devstack gate.
|
|
|
|
sudo chown -R jenkins:stack $BASE/new/tempest
|
|
sudo chown -R jenkins:stack $BASE/data/tempest
|
|
sudo chmod -R o+rx $BASE/new/devstack/files
|
|
|
|
if [[ "$1" =~ "multibackend" ]]; then
|
|
# if arg $1 has "multibackend", then we assume multibackend installation
|
|
source $BASE/new/devstack/functions
|
|
iniset $BASE/new/tempest/etc/tempest.conf share multi_backend True
|
|
|
|
# backend names are defined in pre_test_hook
|
|
iniset $BASE/new/tempest/etc/tempest.conf share backend_names "LONDON,PARIS"
|
|
fi
|
|
|
|
# let us control if we die or not
|
|
set +o errexit
|
|
cd $BASE/new/tempest
|
|
|
|
export TEMPEST_CONCURRENCY=6
|
|
export MANILA_TESTS='tempest.cli.*manila*'
|
|
if [[ ! "$ZUUL_PROJECT" =~ python-manilaclient ]]; then
|
|
MANILA_TESTS+=' tempest.api.share*';
|
|
fi
|
|
|
|
echo "Running tempest manila test suites"
|
|
sudo -H -u jenkins tox -eall $MANILA_TESTS -- --concurrency=$TEMPEST_CONCURRENCY
|