summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 17:37:57 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-07 13:55:47 +0100
commit79614812a546bd31fcd5cae0d6c1ed0db47b5f83 (patch)
tree175dec827040bb95ac1a3de01b73c45df0f55437 /tests/lib
parent3f112ef280d8d10152089fcae772f5edd707817c (diff)
Test suite: Move t-reporefs into lib
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index cf8b725..5c8293f 100644
--- a/tests/lib
+++ b/tests/lib
@@ -52,6 +52,14 @@ t-expect-fail () {
egrep "$mpat" $tmp/t.output ||false
}
+t-reporefs () {
+ (set -e
+ if test -d $tmp/git/$p.git; then
+ cd $tmp/git/$p.git
+ git show-ref |sort
+ fi)
+}
+
t-untar () {
local tarfile=$1.tar
local edittree=$1.edit