diff --git a/dist/tools/drone-scripts/build_and_test.sh b/dist/tools/drone-scripts/build_and_test.sh
index 2313b296628af82712bd7e675753bfc689d81302..7f0071755a0cf4ae71003e21dbc30bee260d2a8f 100755
--- a/dist/tools/drone-scripts/build_and_test.sh
+++ b/dist/tools/drone-scripts/build_and_test.sh
@@ -47,7 +47,7 @@ trap 'rm -rf "$MYTMPDIR"' EXIT
 # Check for PRs and labels
 FULL_CHECK=true
 if [ -z "$FORCE_FULL_CHECK" ]; then
-    if [ $CI_PULL_REQUEST != false ] && ! [ -z "$CI_PULL_REQUEST" ]; then
+    if [ "$CI_PULL_REQUEST" != false ] && ! [ -z "$CI_PULL_REQUEST" ]; then
         # Pull request
         # Check for labels
         . ./dist/tools/pr_check/check_labels.sh
@@ -70,6 +70,7 @@ if $FULL_CHECK; then
     |& tee -a "$MYTMPDIR/output.log"
 else
     echo "PR not ready for CI build. Only static-tests will be executed!"
+    ((FAILURES++))
     exec_build_func static-tests "$@" |& tee -a "$MYTMPDIR/output.log"
 fi