[Devel] [PATCH vz10 v2] selftests: pci_endpoint: skip when the test device is absent

Konstantin Khorenko khorenko at virtuozzo.com
Wed Sep 23 21:18:51 MSK 2026


On Thu, 10 Sep 2026 06:21:19 +0300, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> Every fixture opens /dev/pci-endpoint-test.0 and asserts on the result,
> so on a machine that has no PCI endpoint test device all 17 cases fail
> in fixture setup rather than saying the hardware is not there.
> 
> Fix by checking the device once before handing over to the harness.
> Doing it that way returns one SKIP line from the kselftest.
> 
> [...]

Reviewed-by: Konstantin Khorenko <khorenko at virtuozzo.com>

-- 
Konstantin Khorenko <khorenko at virtuozzo.com>


More information about the Devel mailing list