test/nvme: support systems with non-0 PCI domains

Fix up a second copy of linux_iter_pci in the same manner as commit
6562e95092 (scripts/setup.sh: support
systems where more than one domain is used).

Change-Id: I3d9b842891d70c2960de8287e3b11c1a11b02d1f
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-05-10 16:39:36 -07:00
parent 94a2bec4a8
commit 8d24e2da5b

View File

@ -7,7 +7,7 @@ rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
function linux_iter_pci {
lspci -mm -n | grep $1 | tr -d '"' | awk -F " " '{print "0000:"$1}'
lspci -mm -n -D | grep $1 | tr -d '"' | awk -F " " '{print $1}'
}
timing_enter nvme