From cb5615d88a5acd3f9e384efc9bec3c740977652b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 15 Sep 2015 15:45:57 +0200 Subject: [PATCH] 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 --- teuthology/task/internal.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 9879d23a7d..982ec60c0a 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") -- 2.39.5