blob: 235bae3ddeae3a6df96d70a1bfdfb2273c342631 [file] [log] [blame] [edit]
def run(machine):
host = hosts.create_host(machine)
at = autotest.Autotest(host)
at.run_timed_test('sleeptest', seconds=1, timeout=15) # no exception
try:
at.run_timed_test('sleeptest', seconds=30, timeout=5)
# should timeout
raise 'Test failed to timeout!'
except autotest.AutotestTimeoutError:
print 'Timeout test success!'
job.parallel_simple(run, machines)