12 lines
403 B
Text
12 lines
403 B
Text
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)
|