Package: release.debian.org Severity: normal Tags: patch User: release.debian.org@packages.debian.org Usertags: britney Hello, It's sometimes useful to run britney in "dry mode" to run tests on the unstable packages, but not the full second-stage upgrade test. This is even more useful if/once britney can trigger and evaluate autopkgtests, but even the current Debian ones are interesting. Support this by skipping the upgrade test instead of crashing if the UPGRADE_OUTPUT option in britney.conf is empty or absent. Thanks for considering, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
From 95d3c01daa2f8ee2dd6daeecfbb652ad3fdac0d9 Mon Sep 17 00:00:00 2001 From: Martin Pitt <martin.pitt@ubuntu.com> Date: Fri, 18 Dec 2015 16:51:06 +0100 Subject: [PATCH] Skip upgrade testing if UPGRADE_OUTPUT option is absent or empty It's sometimes useful to run britney in "dry mode" to run tests on the unstable packages, but not the full second-stage upgrade test. Support this by skipping the upgrade test instead of crashing if the UPGRADE_OUTPUT option is empty or absent. --- britney.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/britney.py b/britney.py index 86158fe..cec4ee0 100755 --- a/britney.py +++ b/britney.py @@ -2891,6 +2891,13 @@ class Britney(object): else: self.upgrade_me = self.options.actions.split() + # skip upgrade testing if UPGRADE_OUTPUT option is absent or empty + try: + if not self.options.upgrade_output: + return + except AttributeError: + return + with open(self.options.upgrade_output, 'w', encoding='utf-8') as f: self.__output = f -- 2.6.4
Attachment:
signature.asc
Description: Digital signature