diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-07 14:23:52 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-10 18:02:42 +0100 |
commit | 9f377842120dd8d6206a3f3f2eb297b3e4907fa8 (patch) | |
tree | 63beb7a753292753ba08d7ff1c5ccdcdd583e821 /tests/lib | |
parent | e852e5f836f1016c9af35d331b6aacb3afe6a488 (diff) |
Test suite: Make t-reporefs stash the output
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |