Browse code

Merge "Set tempest lock_path to default in $DATA_DIR"

Jenkins authored on 2013/07/30 07:49:52
Showing 1 changed files
... ...
@@ -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