mbligh | e22a962 | 2007-10-29 16:55:40 +0000 | [diff] [blame] | 1 | def run(machine): |
jadmanski | 8d631c9 | 2008-08-18 21:12:40 +0000 | [diff] [blame] | 2 | host = hosts.create_host(machine) |
mbligh | e22a962 | 2007-10-29 16:55:40 +0000 | [diff] [blame] | 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 | |
mbligh | d74208c | 2008-04-17 15:27:03 +0000 | [diff] [blame] | 12 | job.parallel_simple(run, machines) |