]> arthur.barton.de Git - bup.git/commitdiff
test-sh: don't truncate stderr.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 5 Jan 2010 17:11:27 +0000 (12:11 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 5 Jan 2010 18:03:56 +0000 (13:03 -0500)
Normally you wouldn't notice this problem, unless you tried to run:

make test >&test.out

and found that it was full of NUL characters.  Oops.

test-sh

diff --git a/test-sh b/test-sh
index 35c2f48a38824d39be6d42b536d550d56b961730..0cb868284947778c46dd952d9f9b2c024c5fc60f 100755 (executable)
--- a/test-sh
+++ b/test-sh
@@ -35,7 +35,7 @@ diff -u testfile2 out2c.tmp
     git repack -Ad
     git prune
     (cd "$TOP/t/sampledata" && bup save -vvn master .) || exit 1
-    n=$(git fsck --full --strict 2>&1 | tee /dev/stderr | wc -l)
+    n=$(git fsck --full --strict 2>&1 | tee -a /dev/stderr | wc -l)
     if [ "$n" != 0 ]; then
         echo "git fsck error."
         exit 5