Skip to content

Commit 14ccba0

Browse files
author
Matthew Treinish
committed
Set tempest lock_path to default in $DATA_DIR
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
1 parent fa7ac3f commit 14ccba0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/tempest

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ set +o xtrace
4242
TEMPEST_DIR=$DEST/tempest
4343
TEMPEST_CONF_DIR=$TEMPEST_DIR/etc
4444
TEMPEST_CONF=$TEMPEST_CONF_DIR/tempest.conf
45+
TEMPEST_STATE_PATH=${TEMPEST_STATE_PATH:=$DATA_DIR/tempest}
4546

4647
NOVA_SOURCE_DIR=$DEST/nova
4748

@@ -196,7 +197,8 @@ function configure_tempest() {
196197
fi
197198

198199
# Oslo
199-
iniset $TEMPEST_CONF DEFAULT lock_path $TMPDIR
200+
iniset $TEMPEST_CONF DEFAULT lock_path $TEMPEST_STATE_PATH
201+
mkdir -p $TEMPEST_STATE_PATH
200202

201203
# Timeouts
202204
iniset $TEMPEST_CONF compute build_timeout $BUILD_TIMEOUT

0 commit comments

Comments
 (0)