Ensure flavor_ref_alt is different from flavor_ref
For tempest, server resize tests needs different values for flavors to pass. Ensure different values in tempest.conf for flavor_ref_alt and flavor_ref. Change-Id: I2f8ee92967abc767637e334ae483b540dd7d5b78 Fix: bug 1187768
This commit is contained in:
parent
3f8faa46f3
commit
63a71a2316
10
lib/tempest
10
lib/tempest
@ -166,9 +166,15 @@ function configure_tempest() {
|
|||||||
fi
|
fi
|
||||||
flavor_ref=${flavors[0]}
|
flavor_ref=${flavors[0]}
|
||||||
flavor_ref_alt=$flavor_ref
|
flavor_ref_alt=$flavor_ref
|
||||||
if [[ $num_flavors -gt 1 ]]; then
|
|
||||||
flavor_ref_alt=${flavors[1]}
|
# ensure flavor_ref and flavor_ref_alt have different values
|
||||||
|
# some resize instance in tempest tests depends on this.
|
||||||
|
for f in ${flavors[@]:1}; do
|
||||||
|
if [[ $f -ne $flavor_ref ]]; then
|
||||||
|
flavor_ref_alt=$f
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Q_USE_NAMESPACE" != "False" ]; then
|
if [ "$Q_USE_NAMESPACE" != "False" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user