mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame^] | 1 | import traceback |
| 2 | |
| 3 | |
mbligh | ed5a410 | 2007-11-20 00:46:41 +0000 | [diff] [blame] | 4 | def verify(machine): |
mbligh | 5493129 | 2008-11-23 14:35:51 +0000 | [diff] [blame] | 5 | print 'Initializing host ' + machine |
| 6 | host = hosts.create_host(machine, initialize=False, auto_monitor=False) |
mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame^] | 7 | try: |
| 8 | host.verify() |
| 9 | job.record('GOOD', None, 'verify', '%s verified successfully' % machine) |
| 10 | except Exception, e: |
| 11 | if len(machines) > 1: |
| 12 | subdir = machine |
| 13 | else: |
| 14 | subdir = None |
| 15 | msg = 'verify failed on %s: %s\n' % (machine, str(e)) |
| 16 | job.record('FAIL', subdir, 'verify', msg) |
mbligh | 6b0ab08 | 2008-09-30 20:33:29 +0000 | [diff] [blame] | 17 | |
mbligh | ed5a410 | 2007-11-20 00:46:41 +0000 | [diff] [blame] | 18 | |
mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame^] | 19 | job.parallel_simple(verify, machines) |