Skip to content

selftests: helpers: handle multi line in test_sysfs_prop_optional_list

Boris Shtrasman linux-kselftest linux-pm lkml 2 versions Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- correctped typo IFS vs $IFS.
- Added the patch to treat usb_types

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2selftests: helpers: handle multi line in test_sysfs_prop_optional_listtools/testing/selftests/power_supply/helpers.sh+4 -40 replies
2/2selftests: test possible usb type values from documentationtools/testing/selftests/power_supply/test_power_supply_properties.sh+4 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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(-)
Signature · 1 line
2.47.3