test: allow to call units/testsuite-02.sh from other scripts

This commit is contained in:
Luca Boccassi 2021-06-21 19:46:44 +01:00
parent 1d5574516f
commit 85d3f13254

View file

@ -4,7 +4,8 @@ set -o pipefail
NPROC=$(nproc)
MAX_QUEUE_SIZE=${NPROC:-2}
mapfile -t TEST_LIST < <(find /usr/lib/systemd/tests/ -maxdepth 1 -type f -name "test-*")
TESTS_GLOB=${TESTS_GLOB:-test-*}
mapfile -t TEST_LIST < <(find /usr/lib/systemd/tests/ -maxdepth 1 -type f -name "${TESTS_GLOB}")
# reset state
rm -fv /failed-tests /skipped-tests /skipped