From 6da7f96ca222225e09dcff0c67abdad971cd3aa8 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 17 Jun 2013 17:24:50 +0100 Subject: [PATCH] Pass Britney instances through to AutoPackageTest. --- autopkgtest.py | 3 ++- britney.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autopkgtest.py b/autopkgtest.py index 245db91..41aba45 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -39,7 +39,8 @@ class AutoPackageTest(object): accepted. """ - def __init__(self, series, debug=False): + def __init__(self, britney, series, debug=False): + self.britney = britney self.series = series self.debug = debug self.read() diff --git a/britney.py b/britney.py index 006a425..1dd33a2 100755 --- a/britney.py +++ b/britney.py @@ -1760,7 +1760,7 @@ class Britney(object): # trigger autopkgtests for valid candidates adt_debug = getattr(self.options, "adt_debug", "no") == "yes" autopkgtest = AutoPackageTest( - self.options.adt_series, debug=adt_debug) + self, self.options.adt_series, debug=adt_debug) autopkgtest_packages = [] autopkgtest_excuses = [] for e in self.excuses: