[PATCH v2 0/2] selftests: helpers: handle multi line in test_sysfs_prop_optional_list

From: Boris Shtrasman

Date: Thu Jun 25 2026 - 12:11:21 EST


Modify test_sysfs_prop_optional_list to allow multi line parameters, in
order to comply with checkpatch output that limit line by 100 chars.

Allow use cases like:
test_sysfs_prop_optional_list \
usb_type "Unknown","SDP","DCP","CDP","ACA","C","PD"\
,"PD_DRP","PD_PPS","BrickID", "PD_SPR_AVS" \
,"PD_PPS_SPR_AVS"

--
Changes in v2:
- correctped typo IFS vs $IFS.
- Added the patch to treat usb_types

--

Boris Shtrasman (2):
selftests: helpers: handle multi line in test_sysfs_prop_optional_list
selftests: test possible usb type values from documentation

tools/testing/selftests/power_supply/helpers.sh | 8 ++++----
.../power_supply/test_power_supply_properties.sh | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)

--
2.47.3