From 64400cd216387f40fc9510be907beb98c4969702 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sat, 2 Jan 2021 23:17:14 +0100 Subject: [PATCH] tests: d-JSON convert to printf --- test/d-JSON.sh-test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/d-JSON.sh-test.sh b/test/d-JSON.sh-test.sh index 2847b4c..8c0baf0 100755 --- a/test/d-JSON.sh-test.sh +++ b/test/d-JSON.sh-test.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -#### $$VERSION$$ v1.20-0-g2ab00a2 +#### $$VERSION$$ v1.21-pre-41-g9acb2cd # include common functions and definitions # shellcheck source=test/ALL-tests.inc.sh @@ -12,13 +12,13 @@ cd "${TESTDIR}" || exit 1 # run JSON.sh with and without options cd "test" || exit 1 -echo "Check JSON.sh ..." +printf "Check JSON.sh ...\n" JSON="../JSON.sh/JSON.sh" for i in 1 2 do - [ "${i}" = "1" ] && echo " ... JSON.sh -s -b -n" - [ "${i}" = "2" ] && echo " ... JSON.sh" + [ "${i}" = "1" ] && printf " ... JSON.sh -b -n\n" + [ "${i}" = "2" ] && printf " ... JSON.sh\n" set +f for jsonfile in "${REFDIR}"/*.in do @@ -29,7 +29,7 @@ do # output processed input diff -c "${jsonfile%.in}.result-${i}" "${jsonfile}.out-${i}" || exit 1 done - echo "${SUCCESS}" + printf "%s\n" "${SUCCESS}" done cd "${DIRME}" || exit 1