Commit 24f588e7 authored by Andrew Jones's avatar Andrew Jones
Browse files

arm/pci-test: skip on pci/pci-testdev probe failure



Some configurations don't have pci or pci-testdev. This patch
avoids saying FAIL in those cases. Instead we get SKIP.

Cc: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
parent ca1b7a7b
......@@ -14,14 +14,19 @@ int main(void)
{
int ret;
if (!pci_probe())
report_abort("PCI bus probing failed\n");
if (!pci_probe()) {
printf("PCI bus probing failed, skipping tests...\n");
return report_summary();
}
pci_print();
ret = pci_testdev();
report("PCI test device passed %d/%d tests",
ret >= NR_TESTS, ret > 0 ? ret : 0, NR_TESTS);
if (ret == -1)
report_skip("No PCI test device");
else
report("PCI test device passed %d/%d tests",
ret >= NR_TESTS, ret > 0 ? ret : 0, NR_TESTS);
return report_summary();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment