Show More
@@ -43,13 +43,15 b' def test_console_starts():' | |||||
43 | except IOError: |
|
43 | except IOError: | |
44 | raise SkipTest("Couldn't find command %s" % cmd) |
|
44 | raise SkipTest("Couldn't find command %s" % cmd) | |
45 |
|
45 | |||
46 | idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=45) |
|
46 | # timeout after one minute | |
|
47 | t = 60 | |||
|
48 | idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t) | |||
47 | p.sendline('5') |
|
49 | p.sendline('5') | |
48 |
idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout= |
|
50 | idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout=t) | |
49 |
idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout= |
|
51 | idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t) | |
50 | # send ctrl-D;ctrl-D to exit |
|
52 | # send ctrl-D;ctrl-D to exit | |
51 | p.sendeof() |
|
53 | p.sendeof() | |
52 | p.sendeof() |
|
54 | p.sendeof() | |
53 |
p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout= |
|
55 | p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout=t) | |
54 | if p.isalive(): |
|
56 | if p.isalive(): | |
55 | p.terminate() |
|
57 | p.terminate() |
General Comments 0
You need to be logged in to leave comments.
Login now