selftests: power_supply: Make it POSIX-compliantThere is one use of bash specific syntax in the script. Change it to theequivalent POSIX syntax. This doesn't change functionality and allowsthe te
selftests: power_supply: Make it POSIX-compliantThere is one use of bash specific syntax in the script. Change it to theequivalent POSIX syntax. This doesn't change functionality and allowsthe 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>
show more ...
selftests: Add test to verify power supply propertiesAdd a kselftest that verifies power supply properties from sysfs anduevent. It checks whether they are present, readable and return validvalue
selftests: Add test to verify power supply propertiesAdd a kselftest that verifies power supply properties from sysfs anduevent. It checks whether they are present, readable and return validvalues.This initial set of properties is not comprehensive, but rather the onesthat I was able to validate locally.Co-developed-by: Sebastian Reichel <sebastian.reichel@collabora.com>Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>