check for lockfile before running

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

View File

@ -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