Change I464edf9e11710e1931ed4f7b0262328a57e5b3de set the tempest
lock_path to be $TMPDIR, however when run in the gate this is an
empty string which results in all tests that use locking failing.
This commit corrects that by setting the lock_path config variable
to use $TEMPEST_STATE_PATH which defaults to $DATA_DIR/tempest.
Change-Id: I02fbd50ca68d6daafb5b4c23579473eb703ae72a
| ... | ... |
@@ -42,6 +42,7 @@ set +o xtrace |
| 42 | 42 |
TEMPEST_DIR=$DEST/tempest |
| 43 | 43 |
TEMPEST_CONF_DIR=$TEMPEST_DIR/etc |
| 44 | 44 |
TEMPEST_CONF=$TEMPEST_CONF_DIR/tempest.conf |
| 45 |
+TEMPEST_STATE_PATH=${TEMPEST_STATE_PATH:=$DATA_DIR/tempest}
|
|
| 45 | 46 |
|
| 46 | 47 |
NOVA_SOURCE_DIR=$DEST/nova |
| 47 | 48 |
|
| ... | ... |
@@ -196,7 +197,8 @@ function configure_tempest() {
|
| 196 | 196 |
fi |
| 197 | 197 |
|
| 198 | 198 |
# Oslo |
| 199 |
- iniset $TEMPEST_CONF DEFAULT lock_path $TMPDIR |
|
| 199 |
+ iniset $TEMPEST_CONF DEFAULT lock_path $TEMPEST_STATE_PATH |
|
| 200 |
+ mkdir -p $TEMPEST_STATE_PATH |
|
| 200 | 201 |
|
| 201 | 202 |
# Timeouts |
| 202 | 203 |
iniset $TEMPEST_CONF compute build_timeout $BUILD_TIMEOUT |