mbligh | e22a962 | 2007-10-29 16:55:40 +0000 | [diff] [blame] | 1 | def run(machine): |
2 | host = hosts.SSHHost(machine) | ||||
3 | at = autotest.Autotest(host) | ||||
4 | at.run_timed_test('sleeptest', seconds=1, timeout=15) # no exception | ||||
5 | try: | ||||
6 | at.run_timed_test('sleeptest', seconds=30, timeout=5) | ||||
7 | # should timeout | ||||
8 | raise 'Test failed to timeout!' | ||||
9 | except autotest.AutotestTimeoutError: | ||||
10 | print 'Timeout test success!' | ||||
11 | |||||
12 | parallel_simple(run, machines) |