From 0ff0af731ce4544f84b2f748dcc699717a2df8d6 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Tue, 15 May 2012 11:52:28 +0100 Subject: [PATCH] fate: use diff -b in oneline comparison This is simpler and should take care of any problems with mixed line ending styles. Signed-off-by: Mans Rullgard --- tests/fate-run.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index a45e9a95b3..636fc2d599 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -61,9 +61,7 @@ stddev(){ } oneline(){ - val=$(cat "$2") - test x"$val" = x"$1" || { r=$?; printf -- '-%s\n+%s\n' "$ref" "$val"; } - return ${r:-0} + printf '%s\n' "$1" | diff -u -b - "$2" } run(){ -- 2.11.0