selftests: power_supply: Make it POSIX-compliant
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Mon, 15 Apr 2024 15:32:16 +0000 (11:32 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 May 2024 19:57:20 +0000 (13:57 -0600)
commit5b1c8b1e56ff8b5e9c1a09606af3627bb55933cf
tree13f08f67726c169739bbbce09ad962a53cb79998
parent45d5a2b1886a3ff0fe5627ebee84c089db7ff5f2
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: 4a679c5afca0 ("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>
tools/testing/selftests/power_supply/test_power_supply_properties.sh