From 3ac407407ab8b4ae086c143d7b0e7e8bba7041ba Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 14 Dec 2014 07:01:22 +0100 Subject: [PATCH] check for lockfile before running --- s/preview | 1 + 1 file changed, 1 insertion(+) diff --git a/s/preview b/s/preview index d0964d245..461ef09b7 100755 --- a/s/preview +++ b/s/preview @@ -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