Skip to content

Commit 08a4da8

Browse files
committed
tests: wait after PCI rescan
The reset takes a bit of time, thus wait a short period. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 47134a8 commit 08a4da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/nvme_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ def nvme_reset_ctrl(self):
177177
stderr=subprocess.PIPE,
178178
encoding='utf-8')
179179
self.assertEqual(proc.wait(), 0, "ERROR : pci rescan failed")
180+
# The rescan takes a while until done
181+
time.sleep(1)
180182

181183
def get_ctrl_id(self):
182184
""" Wrapper for extracting the first controller id.

0 commit comments

Comments
 (0)