33 lines
930 B
Bash
33 lines
930 B
Bash
#!/bin/bash
|
|
# CI test that updates upstream images to latest delorean and runs tempest.
|
|
# Usage: tempest.sh <release> <build_system> <config> <job_type>
|
|
set -eux
|
|
|
|
RELEASE=$1
|
|
BUILD_SYS=$2
|
|
CONFIG=$3
|
|
JOB_TYPE=$4
|
|
|
|
# (trown) This is so that we ensure separate ssh sockets for
|
|
# concurrent jobs. Without this, two jobs running in parallel
|
|
# would try to use the same undercloud-stack socket.
|
|
socketdir=$(mktemp -d /tmp/sockXXXXXX)
|
|
export ANSIBLE_SSH_CONTROL_PATH=$socketdir/%%h-%%r
|
|
|
|
pushd $WORKSPACE/tripleo-quickstart
|
|
|
|
bash quickstart.sh \
|
|
--bootstrap \
|
|
--tags all \
|
|
--config $WORKSPACE/config/general_config/$CONFIG.yml \
|
|
--working-dir $WORKSPACE/ \
|
|
--no-clone \
|
|
--release master-tripleo-ci \
|
|
--playbook quickstart-extras.yml \
|
|
--extra-vars test_ping=False \
|
|
--extra-vars run_tempest=True \
|
|
--requirements $WORKSPACE/tripleo-quickstart/quickstart-extras-requirements.txt \
|
|
$VIRTHOST
|
|
|
|
popd
|