##// END OF EJS Templates
single timeout value for pexepect in test_console
MinRK -
Show More
@@ -43,13 +43,15 b' def test_console_starts():'
43 43 except IOError:
44 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 49 p.sendline('5')
48 idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout=15)
49 idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=15)
50 idx = p.expect([r'Out\[\d+\]: 5', pexpect.EOF], timeout=t)
51 idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t)
50 52 # send ctrl-D;ctrl-D to exit
51 53 p.sendeof()
52 54 p.sendeof()
53 p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout=30)
55 p.expect([pexpect.EOF, pexpect.TIMEOUT], timeout=t)
54 56 if p.isalive():
55 57 p.terminate()
General Comments 0
You need to be logged in to leave comments. Login now