android_mt6572_jiabo/external/autotest/server/self-test/timed_test.srv
2025-09-05 16:56:03 +08:00

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)