summaryrefslogtreecommitdiff
path: root/leap-platform-test
diff options
context:
space:
mode:
Diffstat (limited to 'leap-platform-test')
-rwxr-xr-xleap-platform-test2
1 files changed, 1 insertions, 1 deletions
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"