Skip to content

Commit

Permalink
selftests: power_supply: Make it POSIX-compliant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nfraprado authored and shuahkh committed May 6, 2024
1 parent 45d5a2b commit 5b1c8b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ count_tests() {
total_tests=0

for i in $SUPPLIES; do
total_tests=$(("$total_tests" + "$NUM_TESTS"))
total_tests=$((total_tests + NUM_TESTS))
done

echo "$total_tests"
Expand Down

0 comments on commit 5b1c8b1

Please sign in to comment.