From: Luca Boccassi Date: Mon, 21 Jun 2021 18:46:44 +0000 (+0100) Subject: test: allow to call units/testsuite-02.sh from other scripts X-Git-Tag: v249-rc2~31^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85d3f132545b0170da04331a209910509b1a7cbc;p=thirdparty%2Fsystemd.git test: allow to call units/testsuite-02.sh from other scripts --- diff --git a/test/units/testsuite-02.sh b/test/units/testsuite-02.sh index bf9a65972f0..b16e8547ab5 100755 --- a/test/units/testsuite-02.sh +++ b/test/units/testsuite-02.sh @@ -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