[PATCH i-g-t v6 0/2] Fix chamelium port allocation during igt_fixture

Mohammed Bilal
2026-01-29T07:47:02Z

The current fixture implementation executes even for unrelated subtests,
causing false failures when expected inputs were not present.
Refactor the DP/HDMI/VGA hotplug tests to use a common
connector lookup pattern so that each test skips cleanly.

v3:
- Introduce a unified connector test macro (Sebastien)
- Remove unused variable (Sebastien)
- Drop per-connector fixture usage (Sebastien)
- Refactor DP/HDMI/VGA hotplug tests (Sebastien)

v4:
- Rename helper to igt_chamelium_get_port (Jeevan)
- Add documentation for helper and macro (Jeevan)
- Use lowercase name for test macro (Sebastien)

v5:
-Iterate and test all matching connected ports (Kunal)

v6:
- Fix macro structure to ensure safe expansion and proper scoping (Kunal)
- Make the macro independent of assumptions in the calling test (Kunal)
- Move connector_test macro to kms_chamelium_helper
for correct layering (Kunal)
- Use suffixed local variables to avoid name collisions (Kunal)
- Add igt_info logging to show which port is being
exercised by each subtest (Kunal)

Mohammed Bilal (2):
tests/chamelium/kms_chamelium: Add connector_test() macro
tests/chamelium/kms_chamelium_hpd: use helper function for connector
lookup in DP/HDMI/VGA tests

tests/chamelium/kms_chamelium_helper.h | 33 ++++
tests/chamelium/kms_chamelium_hpd.c | 239 ++++++++++---------------
2 files changed, 131 insertions(+), 141 deletions(-)

--
2.48.1