ci-automation/test.sh: handle unset PARALLEL_TESTS

Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
This commit is contained in:
Thilo Fromm 2022-03-10 08:24:44 +01:00
parent 888bc0467d
commit b6627a9fa1

View File

@ -137,7 +137,7 @@ function test_run() {
__prepare_torcx "${arch}" "${vernum}" "${work_dir}"
# Pass PARALLEL_TESTS to the container
if [ -n "${PARALLEL_TESTS}" ] ; then
if [ -n "${PARALLEL_TESTS-}" ] ; then
echo "PARALLEL_TESTS=\"${PARALLEL_TESTS}\"" > sdk_container/.env
echo "rm -f 'sdk_container/.env'" >> ./ci-cleanup.sh
fi