chiark / gitweb /
tests: Make t-alt-test out of t-drs-test
[dgit.git] / tests / lib
index cccdc35..529f55d 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -262,10 +262,12 @@ t-drs () {
        cp $root/tests/suites $tmp/.
 }
 
-t-drs-test () {
-       t-drs
+t-alt-test () {
+       local d=${0%/*}
+       local t=${0##*/}
+       t-${t%%-*}
        cd $root
        export DGIT_TEST_TESTNAME="$testname"
        export ADTTMP=$tmp
-       exec "${0///drs-//}" "$@"
+       exec "$d/${t#*-}"
 }