summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/lib b/tests/lib
index 529f55d..7a5aa76 100644
--- 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#*-}"
}