35
35
36
36
pattern=" "
37
37
if [ ! -z ${TEMPEST_PATTERN: +x} ]; then
38
- pattern=" --pattern $TEMPEST_PATTERN "
38
+ pattern=" --pattern $TEMPEST_PATTERN "
39
39
fi
40
40
41
41
concurrency=" "
42
42
if [ ! -z ${TEMPEST_CONCURRENCY: +x} ]; then
43
- concurrency=" --concurrency $TEMPEST_CONCURRENCY "
43
+ concurrency=" --concurrency $TEMPEST_CONCURRENCY "
44
44
fi
45
45
46
46
if [ ! -d $artifacts_dir ]; then
47
- >&2 echo " You must mount a directory at $artifacts_dir "
47
+ echo >&2 " You must mount a directory at $artifacts_dir "
48
48
exit -1
49
49
fi
50
50
@@ -55,8 +55,8 @@ if [ -f ~/openrc ]; then
55
55
elif [ ! -z ${TEMPEST_OPENRC: +x} ]; then
56
56
. <( echo " $TEMPEST_OPENRC " )
57
57
else
58
- >&2 echo " Could not find openrc file. Please define TEMPEST_OPENRC or copy the file to ~/openrc."
59
- exit -1
58
+ echo >&2 " Could not find openrc file. Please define TEMPEST_OPENRC or copy the file to ~/openrc."
59
+ exit -1
60
60
fi
61
61
set -x
62
62
@@ -74,14 +74,13 @@ if [ -f ~/tempest-overrides.conf ]; then
74
74
rally verify configure-verifier --reconfigure --extend ~ /tempest-overrides.conf
75
75
fi
76
76
77
- rally verify start $skip_list $load_list $pattern $concurrency \
78
- > >( tee -a $artifacts_dir /stdout.log) 2> >( tee -a $artifacts_dir /stderr.log >&2 )
77
+ rally verify start $skip_list $load_list $pattern $concurrency > >( tee -a $artifacts_dir /stdout.log) 2> >( tee -a $artifacts_dir /stderr.log >&2 )
79
78
80
79
rally verify report --type html --to $artifacts_dir /rally-verify-report.html
81
80
rally verify report --type json --to $artifacts_dir /rally-verify-report.json
82
81
rally verify report --type junit-xml --to $artifacts_dir /rally-junit.xml
83
82
84
- rally-extract-tests.sh --status fail > $artifacts_dir /failed-tests
83
+ rally-extract-tests.sh --status fail > $artifacts_dir /failed-tests
85
84
86
85
# NOTE: this assumes only one of these files exists which should ordinarily
87
86
# be the case when the container is discarded after one run.
0 commit comments