From f659ae81d868ad7fbde7558187658cb965976a8c Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 18 Mar 2009 13:35:40 +0100 Subject: [PATCH] test-lib: Work around missing sum on Windows Signed-off-by: Johannes Sixt --- t/t1002-read-tree-m-u-2way.sh | 6 ------ t/test-lib.sh | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/t/t1002-read-tree-m-u-2way.sh b/t/t1002-read-tree-m-u-2way.sh index c4565d559d..5e40cec530 100755 --- a/t/t1002-read-tree-m-u-2way.sh +++ b/t/t1002-read-tree-m-u-2way.sh @@ -10,12 +10,6 @@ This is identical to t1001, but uses -u to update the work tree as well. ' . ./test-lib.sh -sum ./test-lib.sh >/dev/null 2>&1 || { - function sum () { - md5sum "$@" - } -} - _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40" compare_change () { diff --git a/t/test-lib.sh b/t/test-lib.sh index 54556cf093..1be09a4754 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -646,5 +646,8 @@ case $(uname -s) in find () { /usr/bin/find "$@" } + sum () { + md5sum "$@" + } ;; esac -- 2.11.4.GIT