From 0f216bf5ae39a6c78b92487ac7c2209a5b855f5e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 5 Nov 2014 21:39:23 +0000 Subject: tests: Make t-alt-test out of t-drs-test --- tests/lib | 8 +++++--- tests/tests/drs-clone-nogit | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3