forked from github/server
check for lockfile before running
This commit is contained in:
parent
65b48a7996
commit
3ac407407a
|
@ -69,6 +69,7 @@ function run() {
|
||||||
echo "testing turn $turn of game $game"
|
echo "testing turn $turn of game $game"
|
||||||
assert_dir $TESTROOT
|
assert_dir $TESTROOT
|
||||||
cd $TESTROOT
|
cd $TESTROOT
|
||||||
|
[ ! -e execute.lock ] || abort "lockfile prevents running game $game"
|
||||||
[ -d data ] || mkdir data
|
[ -d data ] || mkdir data
|
||||||
assert_dir data
|
assert_dir data
|
||||||
assert_files $LIVE/orders.$turn $LIVE/data/$turn.dat
|
assert_files $LIVE/orders.$turn $LIVE/data/$turn.dat
|
||||||
|
|
Loading…
Reference in New Issue