summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 5c8293f..776e2a3 100644
--- a/tests/lib
+++ b/tests/lib
@@ -53,8 +53,11 @@ t-expect-fail () {
}
t-reporefs () {
+ local whichoutput=$1; shift
+ local outputfile="$tmp/show-refs.$whichoutput"
(set -e
- if test -d $tmp/git/$p.git; then
+ exec >"$outputfile"
+ if test -d $tmp/git/$p.git; then
cd $tmp/git/$p.git
git show-ref |sort
fi)