From 738ac60cd904fe00e7b6738191d6a116bd28aff9 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 15 Apr 2015 05:39:47 -0400 Subject: fix lock test --- leap-platform-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leap-platform-test b/leap-platform-test index 8848752..fd1aa01 100755 --- a/leap-platform-test +++ b/leap-platform-test @@ -90,7 +90,7 @@ check_for_running_instances() { exit 1 fi - if [ -f $lock ] + if [[ $lock && -f $LOCKFILE ]] then subj="WARNING: CI lock found - previous deploy tests failed !" msg="CI lock found, and --lock in use. This means that leap test failed on the previous run.\n Please investigate and then remove $LOCKFILE\n\n" -- cgit v1.2.3