summaryrefslogtreecommitdiffstats
path: root/test/units/test-control.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-02-19 20:37:31 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2024-02-20 13:31:00 +0100
commita69ec6fb0241f6a44fa15cd0009790221c23eb4c (patch)
treed72139126028449f762fcbc229042774fc4fbc3d /test/units/test-control.sh
parentMerge pull request #31388 from keszybz/bitfield-cleanup (diff)
downloadsystemd-a69ec6fb0241f6a44fa15cd0009790221c23eb4c.tar.xz
systemd-a69ec6fb0241f6a44fa15cd0009790221c23eb4c.zip
test: support TEST_MATCH_* stuff in TEST-23-UNIT-FILE as well
TEST-23 uses run_subtests_with_signals() which I forgot about when introducing the change. Follow-up for 0efa27bd4b.
Diffstat (limited to '')
-rw-r--r--test/units/test-control.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/test-control.sh b/test/units/test-control.sh
index c067678668..0a1611b80a 100644
--- a/test/units/test-control.sh
+++ b/test/units/test-control.sh
@@ -86,6 +86,11 @@ run_subtests_with_signals() {
_trap_with_sig _handle_signal "$@"
for subtest in "${subtests[@]}"; do
+ if [[ -n "${TEST_MATCH_SUBTEST:-}" ]] && ! [[ "$subtest" =~ $TEST_MATCH_SUBTEST ]]; then
+ echo "Skipping $subtest (not matching '$TEST_MATCH_SUBTEST')"
+ continue
+ fi
+
: "--- $subtest BEGIN ---"
SECONDS=0
"./$subtest" &