From: Martin Schwenke Date: Mon, 5 Aug 2019 00:14:22 +0000 (+1000) Subject: ctdb-tests: Avoid shellcheck warning SC2004 X-Git-Tag: tdb-1.4.2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664968e523c1533e0fd420d5a0961c7ae1790cff;p=thirdparty%2Fsamba.git ctdb-tests: Avoid shellcheck warning SC2004 SC2004 $/${} is unnecessary on arithmetic variables Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index 5d2d3ff560b..710bea40e8f 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -119,7 +119,7 @@ ctdb_test_end () fi fi - testduration=$(($(date +%s)-$teststarttime)) + testduration=$(($(date +%s) - teststarttime)) echo "==========================================================================" echo "TEST ${interp}: ${name}${statstr} (duration: ${testduration}s)" @@ -185,14 +185,14 @@ run_one_test () { local f="$1" - tests_total=$(($tests_total + 1)) + tests_total=$((tests_total + 1)) ctdb_test_run "$f" | tee "$tf" | show_progress status=$? if [ $status -eq 0 ] ; then - tests_passed=$(($tests_passed + 1)) + tests_passed=$((tests_passed + 1)) else - tests_failed=$(($tests_failed + 1)) + tests_failed=$((tests_failed + 1)) fi if $with_summary ; then local t