check for lockfile before running

This commit is contained in:
Enno Rehling 2014-12-14 07:01:22 +01:00
parent 65b48a7996
commit 3ac407407a
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ function run() {
echo "testing turn $turn of game $game"
assert_dir $TESTROOT
cd $TESTROOT
[ ! -e execute.lock ] || abort "lockfile prevents running game $game"
[ -d data ] || mkdir data
assert_dir data
assert_files $LIVE/orders.$turn $LIVE/data/$turn.dat