File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ FROM ubuntu:20.04
2
2
3
3
RUN sed -i s/^deb-src.*// /etc/apt/sources.list
4
4
5
+ ARG TEMPEST_SOURCE=https://github.com/openstack/tempest
6
+ ARG TEMPEST_VERSION=master
7
+
5
8
RUN apt-get update && apt-get install --yes sudo python3-dev python3-pip vim git-core crudini jq iputils-ping && \
6
9
apt clean && \
7
10
pip3 --no-cache-dir install --upgrade pip setuptools && \
@@ -25,7 +28,7 @@ RUN crudini --set ~/.rally/rally.conf database connection sqlite:////home/rally/
25
28
26
29
RUN rally db recreate
27
30
28
- RUN rally verify create-verifier --name default --type tempest
31
+ RUN rally verify create-verifier --name default --type tempest --source $TEMPEST_SOURCE --version $TEMPEST_VERSION
29
32
30
33
COPY bin/rally-verify-wrapper.sh /usr/bin/rally-verify-wrapper.sh
31
34
COPY bin/rally-extract-tests.sh /usr/bin/rally-extract-tests.sh
Original file line number Diff line number Diff line change 10
10
set -eux
11
11
12
12
artifacts_dir=/home/rally/artifacts
13
- tempest_source_default=" --source /opt/tempest"
14
-
15
- tempest_source=" $tempest_source_default "
16
- if [ ! -z ${TEMPEST_SOURCE: +x} ]; then
17
- tempest_source=" --source $TEMPEST_SOURCE "
18
- fi
19
-
20
- tempest_version=" "
21
- if [ ! -z ${TEMPEST_VERSION: +x} ]; then
22
- tempest_version=" --version $TEMPEST_VERSION "
23
- fi
24
13
25
14
if [ ! -z ${TEMPEST_LOAD_LIST: +x} ]; then
26
15
echo " $TEMPEST_LOAD_LIST " > ~ /tempest-load-list
@@ -86,10 +75,6 @@ crudini --set ~/.rally/rally.conf openstack flavor_ref_alt_disk 1
86
75
87
76
rally deployment create --fromenv --name openstack
88
77
89
- if [ " $tempest_source " != " $tempest_source_default " ] || [ " $tempest_version " != " " ]; then
90
- rally verify create-verifier --name tempest --type tempest $tempest_source $tempest_version
91
- fi
92
-
93
78
if [ -f ~ /tempest-overrides.conf ]; then
94
79
rally verify configure-verifier --reconfigure --extend ~ /tempest-overrides.conf
95
80
fi
You can’t perform that action at this time.
0 commit comments