summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lib8
-rwxr-xr-xtests/tests/drs-clone-nogit2
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib b/tests/lib
index cccdc35..529f55d 100644
--- 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#*-}"
}
diff --git a/tests/tests/drs-clone-nogit b/tests/tests/drs-clone-nogit
index dcfb193..915f9d3 100755
--- a/tests/tests/drs-clone-nogit
+++ b/tests/tests/drs-clone-nogit
@@ -1,4 +1,4 @@
#!/bin/bash
set -e
. tests/lib
-t-drs-test
+t-alt-test