We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36811c4 commit 15bf9b6Copy full SHA for 15bf9b6
1 file changed
lib/pexpect_utils.py
@@ -39,17 +39,8 @@ def terminate(self):
39
self.wait_for_exit()
40
41
def drain_and_terminate(self):
42
- # Wait for the end of the oops, if it is one
43
- try:
44
- idx = self.child.expect(['--\[ end trace', pexpect.TIMEOUT], timeout=10)
45
- except pexpect.exceptions.EOF:
46
- idx = -1
47
- pass
48
-
49
- if idx == 1:
50
- # That didn't match, let it run for a bit
51
- time.sleep(5)
52
+ # Wait for 10s out of output, which should give oopses time to be logged
+ self.child.expect([pexpect.TIMEOUT, pexpect.EOF], timeout=10)
53
self.terminate()
54
55
def get_match(self, i=0):
0 commit comments