get_slot_from_sysfs: accomodate more type of slot names in pci utils
This patche takes care of Slot format for ibm and openpower machines * S0001 * Slot1 * SLOT1 * Backplane USB * U78CB.001.WZS07CU-P1-C9-T1 (should return U78CB.001.WZS07CU-P1-C9) * Onboard USB Respective unit test has also been added test_utils_pci.py Signed-off-by: NAbdul Haleem <abdhalee@linux.vnet.ibm.com> Signed-off-by: NNarasimhan V <sim@linux.vnet.ibm.com>
Showing
selftests/unit/test_utils_pci.py
0 → 100644
想要评论请 注册 或 登录