chiark / gitweb /
tests: Break out t-chain-test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 16:06:57 +0000 (16:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 22:22:20 +0000 (22:22 +0000)
tests/lib

index 529f55d..7a5aa76 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -262,12 +262,17 @@ t-drs () {
        cp $root/tests/suites $tmp/.
 }
 
-t-alt-test () {
+t-chain-test () {
+       local ct=$1
        local d=${0%/*}
-       local t=${0##*/}
-       t-${t%%-*}
        cd $root
        export DGIT_TEST_TESTNAME="$testname"
        export ADTTMP=$tmp
-       exec "$d/${t#*-}"
+       exec "$d/$ct"
+}      
+
+t-alt-test () {
+       local t=${0##*/}
+       t-${t%%-*}
+       t-chain-test "${t#*-}"
 }