blob: 235bae3ddeae3a6df96d70a1bfdfb2273c342631 [file] [log] [blame]
mblighe22a9622007-10-29 16:55:40 +00001def run(machine):
jadmanski8d631c92008-08-18 21:12:40 +00002 host = hosts.create_host(machine)
mblighe22a9622007-10-29 16:55:40 +00003 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
mblighd74208c2008-04-17 15:27:03 +000012job.parallel_simple(run, machines)