gitlab-ci: allow deqp-runner to use the maximum number of jobs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 5 Mar 2020 14:20:34 +0000 (15:20 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 14:36:41 +0000 (14:36 +0000)
if $DEQP_PARALLEL is not set, it will use the maximum number of
jobs instead of 1.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4179>

.gitlab-ci/deqp-runner.sh

index 0a32207ba4a8483a172fc8ba09257024a99c6d81..ed95ba53578284e57110a0b9fbebbd37a0a0e6ad 100755 (executable)
@@ -71,6 +71,10 @@ fi
 
 set +e
 
+if [ -n "$DEQP_PARALLEL" ]; then
+   JOB="--job $DEQP_PARALLEL"
+fi
+
 run_cts() {
     deqp=$1
     caselist=$2
@@ -81,7 +85,7 @@ run_cts() {
         --caselist $caselist \
         --exclude-list $ARTIFACTS/$DEQP_SKIPS \
         $XFAIL \
-        --job ${DEQP_PARALLEL:-1} \
+        $JOB \
        --allow-flakes true \
        $DEQP_RUNNER_OPTIONS \
         -- \