Skip to content

Commit 9b50953

Browse files
committed
pexpect: Split out drain()
1 parent 0227f85 commit 9b50953

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/pexpect_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ def terminate(self):
3838
self.child.terminate()
3939
self.wait_for_exit()
4040

41-
def drain_and_terminate(self):
41+
def drain(self):
4242
# Wait for 10s out of output, which should give oopses time to be logged
4343
self.child.expect([pexpect.TIMEOUT, pexpect.EOF], timeout=10)
44+
45+
def drain_and_terminate(self):
46+
self.drain()
4447
self.terminate()
4548

4649
def get_match(self, i=0):

0 commit comments

Comments
 (0)