[PATCH 2/2] selftests: power_supply: Make it POSIX-compliant