summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-08-05 10:14:22 +1000
committerAmitay Isaacs <amitay@samba.org>2019-08-14 09:11:34 +0000
commit664968e523c1533e0fd420d5a0961c7ae1790cff (patch)
tree994018c13fa51c2044a2ab6dcf4164517394d2b1 /ctdb/tests
parent034f4cfab8b6690e07f5b9cfaaa5cb31ac29336e (diff)
downloadsamba-664968e523c1533e0fd420d5a0961c7ae1790cff.tar.gz
ctdb-tests: Avoid shellcheck warning SC2004
SC2004 $/${} is unnecessary on arithmetic variables Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-xctdb/tests/run_tests.sh8
1 files 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