blob: 235bae3ddeae3a6df96d70a1bfdfb2273c342631 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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)
|