From: Loic Dachary Date: Tue, 15 Sep 2015 13:45:57 +0000 (+0200) Subject: internal: do not check packages if task buildpackages is found X-Git-Tag: 1.1.0~810^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb5615d88a5acd3f9e384efc9bec3c740977652b;p=teuthology.git internal: do not check packages if task buildpackages is found The buildpackages task is responsible for creating the packages, there is no point in verifying they are already present. Signed-off-by: Loic Dachary --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 9879d23a7..982ec60c0 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -234,6 +234,12 @@ def check_packages(ctx, config): If there are missing packages, fail the job. """ + for task in ctx.config['tasks']: + if task.keys()[0] == 'buildpackages': + log.info("Checking packages skipped because " + "the task buildpackages was found.") + return + log.info("Checking packages...") os_type = ctx.config.get("os_type") sha1 = ctx.config.get("sha1")