From f85805f9016ccc768e524fcc3fcc3d247a9064ac Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 31 Aug 2022 17:50:22 +0200 Subject: [PATCH] Use only commands from coreutils --- tests/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index ba51e28..b2e617d 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -7,7 +7,7 @@ BOLD='\033[1m' NC='\033[0m' # No Color wai=$(dirname $(readlink -f "$0")) # Current script directory -tests=$(find ${wai}/ -maxdepth 1 -mindepth 1 -type d) # Find tests +tests=$(ls -d ./*/) # Find tests out=$(mktemp) test_timeout=20 abort=1 @@ -29,7 +29,7 @@ do fi # Ensure test output - if $(diff "$out" ./out &>/dev/null) + if [ "$(base64 $out)" == "$(base64 ./out)" ] then echo -e "${GREEN}${BOLD}passed${NC}" else