未验证 提交 5b1acd36 编写于 作者: L Lukáš Doktor

Merging pull request 1772

Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>

* https://github.com/avocado-framework/avocado:
  Return slot direct from file output without any filter
......@@ -141,8 +141,7 @@ def get_slot_from_sysfs(full_pci_address):
if not os.path.isfile("/proc/device-tree/%s/ibm,loc-code" % devspec):
return
slot = read_file("/proc/device-tree/%s/ibm,loc-code" % devspec)
return re.match(r'((\w+)[\.])+(\w+)-(\w*\d+)-(\w*\d+)|Slot(\d+)',
slot).group()
return slot
def get_slot_list():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册