Revision b459a848 tools/burnin
b/tools/burnin | ||
---|---|---|
91 | 91 |
|
92 | 92 |
class SimpleOpener(urllib.FancyURLopener): |
93 | 93 |
"""A simple url opener""" |
94 |
# pylint: disable-msg=W0221
|
|
94 |
# pylint: disable=W0221 |
|
95 | 95 |
|
96 | 96 |
def prompt_user_passwd(self, host, realm, clear_cache=0): |
97 | 97 |
"""No-interaction version of prompt_user_passwd.""" |
98 | 98 |
# we follow parent class' API |
99 |
# pylint: disable-msg=W0613
|
|
99 |
# pylint: disable=W0613 |
|
100 | 100 |
return None, None |
101 | 101 |
|
102 | 102 |
def http_error_default(self, url, fp, errcode, errmsg, headers): |
... | ... | |
232 | 232 |
def wrapper(self, *args, **kwargs): |
233 | 233 |
val = fn(self, *args, **kwargs) |
234 | 234 |
for instance in self.instances: |
235 |
self._CheckInstanceAlive(instance) # pylint: disable-msg=W0212
|
|
235 |
self._CheckInstanceAlive(instance) # pylint: disable=W0212 |
|
236 | 236 |
return val |
237 | 237 |
|
238 | 238 |
return wrapper |
... | ... | |
312 | 312 |
Log("Idempotent %s succeeded after %d retries", |
313 | 313 |
msg, MAX_RETRIES - retry_count) |
314 | 314 |
return val |
315 |
except Exception, err: # pylint: disable-msg=W0703
|
|
315 |
except Exception, err: # pylint: disable=W0703 |
|
316 | 316 |
if retry_count == 0: |
317 | 317 |
Log("Non-idempotent %s failed, aborting", msg) |
318 | 318 |
raise |
... | ... | |
358 | 358 |
cli.SetGenericOpcodeOpts(ops, self.opts) |
359 | 359 |
self.queued_ops.append((ops, name, post_process)) |
360 | 360 |
else: |
361 |
val = self.ExecOp(self.queue_retry, *ops) # pylint: disable-msg=W0142
|
|
361 |
val = self.ExecOp(self.queue_retry, *ops) # pylint: disable=W0142 |
|
362 | 362 |
if post_process is not None: |
363 | 363 |
post_process() |
364 | 364 |
return val |
... | ... | |
400 | 400 |
self.ClearFeedbackBuf() |
401 | 401 |
jex = cli.JobExecutor(cl=self.cl, feedback_fn=self.Feedback) |
402 | 402 |
for ops, name, _ in jobs: |
403 |
jex.QueueJob(name, *ops) # pylint: disable-msg=W0142
|
|
403 |
jex.QueueJob(name, *ops) # pylint: disable=W0142 |
|
404 | 404 |
try: |
405 | 405 |
results = jex.GetResults() |
406 |
except Exception, err: # pylint: disable-msg=W0703
|
|
406 |
except Exception, err: # pylint: disable=W0703 |
|
407 | 407 |
Log("Jobs failed: %s", err) |
408 | 408 |
raise BurninFailure() |
409 | 409 |
|
... | ... | |
414 | 414 |
if post_process: |
415 | 415 |
try: |
416 | 416 |
post_process() |
417 |
except Exception, err: # pylint: disable-msg=W0703
|
|
417 |
except Exception, err: # pylint: disable=W0703 |
|
418 | 418 |
Log("Post process call for job %s failed: %s", name, err) |
419 | 419 |
fail = True |
420 | 420 |
val.append(result) |
... | ... | |
1066 | 1066 |
if not self.opts.keep_instances: |
1067 | 1067 |
try: |
1068 | 1068 |
self.BurnRemove() |
1069 |
except Exception, err: # pylint: disable-msg=W0703
|
|
1069 |
except Exception, err: # pylint: disable=W0703 |
|
1070 | 1070 |
if has_err: # already detected errors, so errors in removal |
1071 | 1071 |
# are quite expected |
1072 | 1072 |
Log("Note: error detected during instance remove: %s", err) |
Also available in: Unified diff