]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
internal: do not check packages if task buildpackages is found 623/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 15 Sep 2015 13:45:57 +0000 (15:45 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 23 Sep 2015 20:41:54 +0000 (22:41 +0200)
The buildpackages task is responsible for creating the packages, there
is no point in verifying they are already present.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task/internal.py

index 9879d23a7d0f1d7e09aa4b1c33be931d815ca63b..982ec60c0a1a28bb2e369fef1236dd3ca395542e 100644 (file)
@@ -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")