1def run(machine):
2	host = hosts.create_host(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
12job.parallel_simple(run, machines)
13