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.
This commit is contained in:
Frantisek Sumsal
2024-02-19 20:37:31 +01:00
parent ce3fa3863d
commit a69ec6fb02

View File

@@ -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" &