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 <mike.looijmans@topic.nl> Closes: https://lore.kernel.org/all/efae4037-c22a-40be-8ba9-7c1c12ece042@topic.nl/ Fixes: 4a679c5 ("selftests: Add test to verify power supply properties") Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 45d5a2b commit 5b1c8b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)