[PATCH i-g-t v2 0/8] tests/core_hotunplug: Make it fail only once
Kamil Konieczny
kamil.konieczny at linux.intel.com
Mon Aug 5 14:37:03 UTC 2024
Test core_hotunplug has some checks outside of subtest which
could turn it into a failed subtest. When it do a fail, then every
other fixture will also fail and repeats printing same logs. Changed
that into check performed only once when it is really needed, e.g. only
after an actual subtest was done.
Added also some helpers in drmtest lib to print what driver we are testing
and make sure we reload the same, not some other.
v1 was sent here: https://patchwork.freedesktop.org/series/134626/
v2: Added few more prints into subtest to better see after which step
it started failing, changes series title
Cc: Andrzej Hajda <andrzej.hajda at intel.com>
Cc: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski at intel.com>
Kamil Konieczny (8):
lib/drmtest: add function for retriving chipset
tests/core_hotunplug: set known chipset before tests
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
tests/core_hotunplug: Check health once after subtest
tests/core_hotunplug: Print info between steps
lib/drmtest.c | 35 +++++++++-
lib/drmtest.h | 4 ++
tests/core_hotunplug.c | 153 +++++++++++++++++++++++++++--------------
3 files changed, 141 insertions(+), 51 deletions(-)
--
2.43.0
More information about the igt-dev
mailing list