mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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>
This commit is contained in:
parent
034f4cfab8
commit
664968e523
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user