automation/test.sh: pass PARALLEL_TESTS to container

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
Thilo Fromm 2022-03-09 17:38:15 +01:00
parent 0c8d96edaa
commit 8ca2393eb8

View File

@ -38,6 +38,8 @@
# All positional arguments after the first 2 (see above) are tests / patterns of tests to run. # 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. # 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: # OUTPUT:
# #
@ -134,6 +136,12 @@ function test_run() {
# Make the torcx artifacts available to test implementation # Make the torcx artifacts available to test implementation
__prepare_torcx "${arch}" "${vernum}" "${work_dir}" __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_summary="results-${image}.tap"
local tap_merged_detailed="results-${image}-detailed.tap" local tap_merged_detailed="results-${image}-detailed.tap"
local retry="" local retry=""