chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: Make t-alt-test out of t-drs-test
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index cccdc35dd5a6c1d2e09816360fabc1ae605ffd6e..529f55d95a77cc2b11663ef940f1794bb63fc23b 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#*-}
"
}