summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2020-03-05 15:20:34 +0100
committerMarge Bot <eric+marge@anholt.net>2020-03-16 14:36:41 +0000
commit4668a08e9d7bf73683f9527920fc544eb95e8497 (patch)
tree427f6adc4695faeb25c62dd256decbc4d950bd42 /.gitlab-ci
parent888b41f0ee0cc0f79c299d5a2a9149ae13306c12 (diff)
gitlab-ci: allow deqp-runner to use the maximum number of jobs
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>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/deqp-runner.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci/deqp-runner.sh b/.gitlab-ci/deqp-runner.sh
index 0a32207ba4a..ed95ba53578 100755
--- a/.gitlab-ci/deqp-runner.sh
+++ b/.gitlab-ci/deqp-runner.sh
@@ -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 \
-- \