@matheusbsbs / matheus-bagliano / commits / 8d7d1670a8
Fork 0

make t5501 less annoying

On Linux, "mktemp tmp-XXXX" will not work. Also, redirect stderr on which, so it does not complain too loudly. After all, this test should only be executed when old binaries are available. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Oct 28, 2005 at 05:59 UTC 8d7d1670a87743c699aa8a981506c952088dc2d4
1 file changed +2 -2
t/t5501-old-fetch-and-upload.sh
+2 -2
@@ -8,7 +8,7 @@
8
9 cd $(dirname $0) || exit 1
10
11 -tmp=$(mktemp tmp-XXXX)
11 +tmp=$(mktemp /tmp/tmp-XXXXXXXX)
12
13 retval=0
14
@@ -25,7 +25,7 @@ for i in $list; do
25 both) pgm="old-git-upload-pack"; replace="old-git-fetch-pack --exec=$pgm";;
26 esac
27
28 - if which $pgm; then
28 + if which $pgm 2>/dev/null; then
29 echo "Testing with $pgm"
30 sed -e "s/git-fetch-pack/$replace/g" \
31 -e "s/# old fails/warn/" < t5500-fetch-pack.sh > $tmp