From: Jon Derrick Date: Mon, 27 Nov 2017 21:49:05 +0000 (-0700) Subject: common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=452ab75f6490cf13abe4e7311c089c8b3a970f2e;p=users%2Fsagi%2Fblktests.git common/rc: allow 5-digit domains in _get_pci_dev_from_blkdev At least one driver (VMD) uses 32-bit pci domains, but is effectively limited to 5-digit domains. Allow tests to access devices with 4-5 digit domains. Signed-off-by: Jon Derrick --- diff --git a/common/rc b/common/rc index 6b29c2b..09ce4ef 100644 --- a/common/rc +++ b/common/rc @@ -138,7 +138,7 @@ _test_dev_is_pci() { _get_pci_dev_from_blkdev() { readlink -f "$TEST_DEV_SYSFS/device" | \ - grep -Eo '[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \ + grep -Eo '[0-9a-f]{4,5}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]' | \ tail -1 }