Commit 5b1c8b1e authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado Committed by Shuah Khan

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: default avatarMike Looijmans <mike.looijmans@topic.nl>
Closes: https://lore.kernel.org/all/efae4037-c22a-40be-8ba9-7c1c12ece042@topic.nl/
Fixes: 4a679c5a ("selftests: Add test to verify power supply properties")
Signed-off-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 45d5a2b1
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment