From 664968e523c1533e0fd420d5a0961c7ae1790cff Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 5 Aug 2019 10:14:22 +1000 Subject: [PATCH] ctdb-tests: Avoid shellcheck warning SC2004 SC2004 $/${} is unnecessary on arithmetic variables Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/run_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.2