Skip to content

Commit 5b1c8b1

Browse files
nfrapradoshuahkh
authored andcommitted
selftests: power_supply: Make it POSIX-compliant
There is one use of bash specific syntax in the script. Change it to the equivalent POSIX syntax. This doesn't change functionality and allows the test to be run on shells other than bash. Reported-by: Mike Looijmans <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Fixes: 4a679c5 ("selftests: Add test to verify power supply properties") Signed-off-by: Nícolas F. R. A. Prado <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 45d5a2b commit 5b1c8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/power_supply/test_power_supply_properties.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ count_tests() {
2323
total_tests=0
2424

2525
for i in $SUPPLIES; do
26-
total_tests=$(("$total_tests" + "$NUM_TESTS"))
26+
total_tests=$((total_tests + NUM_TESTS))
2727
done
2828

2929
echo "$total_tests"

0 commit comments

Comments
 (0)