mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-23 08:21:30 +00:00
Save the state of policies on every non-dry run, not only during migration runs
The autopkgtest policy is really sending requests during every non-dry run, we want to capture that state.
This commit is contained in:
parent
b21b129527
commit
2fc265be91
@ -1216,8 +1216,6 @@ class Britney(object):
|
|||||||
if not self.options.dry_run:
|
if not self.options.dry_run:
|
||||||
target_suite = self.suite_info.target_suite
|
target_suite = self.suite_info.target_suite
|
||||||
|
|
||||||
self._policy_engine.save_state(self)
|
|
||||||
|
|
||||||
# write HeidiResult
|
# write HeidiResult
|
||||||
self.logger.info("Writing Heidi results to %s", self.options.heidi_output)
|
self.logger.info("Writing Heidi results to %s", self.options.heidi_output)
|
||||||
write_heidi(self.options.heidi_output,
|
write_heidi(self.options.heidi_output,
|
||||||
@ -1484,6 +1482,8 @@ class Britney(object):
|
|||||||
self.logger.info('> %s', stat)
|
self.logger.info('> %s', stat)
|
||||||
else:
|
else:
|
||||||
self.logger.info('Migration computation skipped as requested.')
|
self.logger.info('Migration computation skipped as requested.')
|
||||||
|
if not self.options.dry_run:
|
||||||
|
self._policy_engine.save_state(self)
|
||||||
logging.shutdown()
|
logging.shutdown()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user