We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0227f85 commit 9b50953Copy full SHA for 9b50953
1 file changed
lib/pexpect_utils.py
@@ -38,9 +38,12 @@ def terminate(self):
38
self.child.terminate()
39
self.wait_for_exit()
40
41
- def drain_and_terminate(self):
+ def drain(self):
42
# Wait for 10s out of output, which should give oopses time to be logged
43
self.child.expect([pexpect.TIMEOUT, pexpect.EOF], timeout=10)
44
+
45
+ def drain_and_terminate(self):
46
+ self.drain()
47
self.terminate()
48
49
def get_match(self, i=0):
0 commit comments