From 8ca2393eb8e745348f093734a08c73de3dd2c00e Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Wed, 9 Mar 2022 17:38:15 +0100 Subject: [PATCH] automation/test.sh: pass PARALLEL_TESTS to container Signed-off-by: Thilo Fromm --- ci-automation/test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci-automation/test.sh b/ci-automation/test.sh index e122f92798..1563567a5a 100644 --- a/ci-automation/test.sh +++ b/ci-automation/test.sh @@ -38,6 +38,8 @@ # All positional arguments after the first 2 (see above) are tests / patterns of tests to run. # # MAX_RETRIES. Environment variable. Number of re-runs to overcome transient failures. Defaults to 20. +# PARALLEL_TESTS. Environment variable. Number of test cases to run in parallel. +# Default is image / vendor specific and defined in ci-automation/ci-config.env. # # OUTPUT: # @@ -134,6 +136,12 @@ function test_run() { # Make the torcx artifacts available to test implementation __prepare_torcx "${arch}" "${vernum}" "${work_dir}" + # Pass PARALLEL_TESTS to the container + if [ -n "${PARALLEL_TESTS}" ] ; then + echo "PARALLEL_TESTS=\"${PARALLEL_TESTS}\"" > sdk_container/.env + echo "rm -f 'sdk_container/.env'" >> ./ci-cleanup.sh + fi + local tap_merged_summary="results-${image}.tap" local tap_merged_detailed="results-${image}-detailed.tap" local retry=""