mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
automation/test.sh: pass PARALLEL_TESTS to container
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
parent
0c8d96edaa
commit
8ca2393eb8
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user