From 0eddac84764753daa03d82cebcc8e467e1f0fd45 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 18 Sep 2015 06:43:39 +0200 Subject: [PATCH] Autopkgtest: Trim triggered tests for gccgo-5 gccgo-5 exists in Ubuntu 15.04 only and builds all binary packages of gcc-5. Triggering all tests is pointless and a big waste of test resources, so trim down the list to actually useful ones. This can be dropped when 15.04 goes EOL. --- autopkgtest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/autopkgtest.py b/autopkgtest.py index a708e31..a0389dd 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -160,6 +160,16 @@ class AutoPackageTest(object): tests = [] + # hack for vivid's gccgo-5 + if src == 'gccgo-5': + for test in ['juju', 'juju-core', 'juju-mongodb', 'mongodb']: + try: + tests.append((test, self.britney.sources['testing'][test][VERSION])) + except KeyError: + # no package in that series? *shrug*, then not (mostly for testing) + pass + return tests + # gcc-* triggers tons of tests via libgcc1, but this is mostly in vain: # gcc already tests itself during build, and it is being used from # -proposed, so holding it back on a dozen unrelated test failures