blob: cb82e651947c759532ac093f4e688e272041cc9d [file] [log] [blame]
mblighe22a9622007-10-29 16:55:40 +00001def 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
12parallel_simple(run, machines)