]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: allow to call units/testsuite-02.sh from other scripts
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 21 Jun 2021 18:46:44 +0000 (19:46 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 21 Jun 2021 18:47:38 +0000 (19:47 +0100)
test/units/testsuite-02.sh

index bf9a65972f039e399a6459b9675fca965c2dafc9..b16e8547ab5b8b74001168e427b4e5a530001e84 100755 (executable)
@@ -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