[PATCH i-g-t v1 0/7] tests/core_hotunplug: Make it fail in subtests

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Jun 7 15:36:12 UTC 2024


Test core_hotunplug has some checks outside of subtest which
will make it fail. Try to fail it in subtest context, not outside
in fixture. Add also some helpers in drmtest lib to print what
driver we are testing and make sure we reload the same, not some
other.

Cc: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski at intel.com>

Kamil Konieczny (7):
  lib/drmtest: add function for retriving chipset
  tests/core_hotunplug: set known chipset before tests
  tests/core_hotplug: Add checks to subtests
  lib/drmtest: Allow to get drm device name
  tests/core_hotunplug: Open the same driver
  tests/core_hotunplug: Fix device close
  tests/core_hotunplug: Skip if no render available

 lib/drmtest.c          |  35 ++++++++++-
 lib/drmtest.h          |   4 ++
 tests/core_hotunplug.c | 137 ++++++++++++++++++++++++++++-------------
 3 files changed, 132 insertions(+), 44 deletions(-)

-- 
2.43.0



More information about the igt-dev mailing list