chiark / gitweb /
tests: Make t-alt-test out of t-drs-test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Nov 2014 21:39:23 +0000 (21:39 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 22:22:20 +0000 (22:22 +0000)
tests/lib
tests/tests/drs-clone-nogit

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#*-}"
 }
index dcfb193..915f9d3 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/bash
 set -e
 . tests/lib
-t-drs-test
+t-alt-test