From 9dcea1d184ceb10021b9d78e7cf3dd3487f978d5 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 8 Oct 2012 21:06:08 +0200 Subject: [PATCH] test: Simply compare_file function --- test.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test.sh b/test.sh index ee723bb6d..41caf6b94 100755 --- a/test.sh +++ b/test.sh @@ -81,10 +81,7 @@ checkstat() { } compare_file() { - cmp -s "$1" "$2" - if [ $? -eq 0 ]; then - : - else + if ! cmp -s "$1" "$2"; then test_failed "Files differ: $1 != $2" fi } -- 2.47.3