summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-25 18:53:32 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-25 18:53:32 +0100
commitf8b5f0c45e4b6b8c90cf6097d7d7d11a55852510 (patch)
treeaef38e8aa05e9acae1e0463c8eeeb72ded4d9463 /tests
parent968202ab0b56d1d27f14703c208a88b9540024f7 (diff)
Test suite: list-tests: Break out seddery()
Diffstat (limited to 'tests')
-rwxr-xr-xtests/list-tests15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/list-tests b/tests/list-tests
index d0582f6..3381dbf 100755
--- a/tests/list-tests
+++ b/tests/list-tests
@@ -69,13 +69,18 @@ finish-gencontrol () {
done
}
+seddery () {
+ local seddery=$1
+ sed <$t -n '
+ 20q;
+ /^: t-list-tests-end$/q;
+ '"$seddery"'
+ '
+}
+
for t in $(run-parts --list tests/tests); do
test-begin-$mode
- for r in $(sed <$t -n '
- 20q;
- /^: t-list-tests-end$/q;
- s/^t-restrict //p
- '); do
+ for r in $(seddery 's/^t-restrict //p'); do
restriction-$mode
done
test-done-$mode