diff --git a/tools/ci/before_install.sh b/tools/ci/before_install.sh index bf7d48c0042ac0..9b80fd9578544e 100644 --- a/tools/ci/before_install.sh +++ b/tools/ci/before_install.sh @@ -1,13 +1,13 @@ #!/bin/bash set -e -if [[ $(./wpt test-jobs --includes $JOB; echo $?) -eq 0 ]]; then +if [[ -z ${RUN_JOB+x} && $(./wpt test-jobs --includes $JOB; echo $?) -eq 0 ]] || [[ $RUN_JOB -eq 1 ]]; then export RUN_JOB=1 git submodule update --init --recursive 1>&2 export DISPLAY=:99.0 sh -e /etc/init.d/xvfb start 1>&2 # For uploading the manifest export WPT_MANIFEST_FILE=$HOME/meta/MANIFEST-$(git rev-parse HEAD).json -else +elif [[ -z ${RUN_JOB+x} ]]; then export RUN_JOB=0 fi