projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3fa38
)
test: support TEST_MATCH_* stuff in TEST-23-UNIT-FILE as well
author
Frantisek Sumsal
<frantisek@sumsal.cz>
Mon, 19 Feb 2024 19:37:31 +0000
(20:37 +0100)
committer
Frantisek Sumsal
<frantisek@sumsal.cz>
Tue, 20 Feb 2024 12:31:00 +0000
(13:31 +0100)
TEST-23 uses run_subtests_with_signals() which I forgot about when
introducing the change.
Follow-up for
0efa27bd4b
.
test/units/test-control.sh
patch
|
blob
|
history
diff --git
a/test/units/test-control.sh
b/test/units/test-control.sh
index c0676786685e347ccc5316a9c6dcdba8539e08b9..0a1611b80aee2e0565cdbadce566a54dbd8c1c55 100644
(file)
--- 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" &