From patchwork Wed May 23 04:06:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 8895 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BED072400C for ; Wed, 23 May 2012 04:06:13 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6700DA18DFA for ; Wed, 23 May 2012 04:06:13 +0000 (UTC) Received: by obbun3 with SMTP id un3so13684643obb.11 for ; Tue, 22 May 2012 21:06:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=+XvUjjv+CWeqHEyo4dmEovdffU2Gldxp3wH64DxK2sY=; b=GxS91vihT3nEID7AypjEWJUYCLkU8i8s+9Tsb/m3lFTyiOLtrNseRJXPz/I79xrFQi YNgSQwXCS3khPv9L5BZLQX9aoiVoGH6XiDxxL1X139ZxTKp/jlBTfhJPZYJFNlDjPBz5 zsj/RDnx/1w+N4gCMyc+3Ki47soHb5JuhUhQ20gibkIGvA7sljtyCS9bSR7HWthNL6s9 OL2OzDQIMJ9xLbwMl3jtMNAlFHn673jPED44k3DYxzTJ9NbbiEpNtsTJk7y1alc+hwuL kSOOVpulxDdhsQk8/lFbkN41P9VYUNpPENOYq74srU43bFty7phbzSFEztU3OpQsz84k JiZg== Received: by 10.50.40.193 with SMTP id z1mr11714683igk.0.1337745972621; Tue, 22 May 2012 21:06:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.35.72 with SMTP id o8csp413221ibd; Tue, 22 May 2012 21:06:11 -0700 (PDT) Received: by 10.180.98.201 with SMTP id ek9mr41803655wib.7.1337745971230; Tue, 22 May 2012 21:06:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n12si27059586wee.32.2012.05.22.21.06.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 21:06:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SX2pu-0007Ur-Fs for ; Wed, 23 May 2012 04:06:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 712FFE1446 for ; Wed, 23 May 2012 04:06:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 296 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 296: Add support to install extra debian packages from lava_test_install (Luis Araujo) Message-Id: <20120523040610.15511.39137.launchpad@ackee.canonical.com> Date: Wed, 23 May 2012 04:06:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15282"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: dc9fbca9fed8a5795554e8c35b457e12da46e45e X-Gm-Message-State: ALoCoQlYUURZmTiq3UsiTvcpCRiQIykoFwPIVbN1zGUsmA45egenNT4DfIGfEEYwZ0Rt77o73CiM Merge authors: Luis Araujo (luis-araujo) Related merge proposals: https://code.launchpad.net/~luis-araujo/lava-dispatcher/lava_test_install_deb/+merge/106883 proposed by: Luis Araujo (luis-araujo) review: Approve - Zygmunt Krynicki (zkrynicki) ------------------------------------------------------------ revno: 296 [merge] committer: Michael Hudson-Doyle branch nick: trunk timestamp: Wed 2012-05-23 16:03:59 +1200 message: Add support to install extra debian packages from lava_test_install (Luis Araujo) modified: lava_dispatcher/actions/lava-test.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/actions/lava-test.py' --- lava_dispatcher/actions/lava-test.py 2012-05-22 17:52:40 +0000 +++ lava_dispatcher/actions/lava-test.py 2012-05-23 04:03:59 +0000 @@ -113,6 +113,9 @@ 'install_python': { 'type': 'array', 'items': {'type': 'string'}, 'optional': True }, + 'install_deb': { + 'type': 'array', 'items': {'type': 'string'}, 'optional': True + }, 'register': { 'type': 'array', 'items': {'type': 'string'}, 'optional': True }, @@ -130,7 +133,7 @@ else: self.context.test_data.add_result(test_result_name, 'pass') - def run(self, tests, install_python=None, register=None, timeout=2400): + def run(self, tests, install_python=None, install_deb=None, register=None, timeout=2400): logging.info( "Executing lava_test_install (%s) command" % ",".join(tests)) @@ -151,6 +154,12 @@ session, "pip install -e " + module, 'lava_test_install python (%s)' % module, timeout=60) + if install_deb: + debs = " ".join(install_deb) + self.run_command_with_test_result( + session, "apt-get -y --force-yes install " + debs, + 'lava_test_install deb (%s)' % debs, timeout=timeout) + if register: for test_def_url in register: self.run_command_with_test_result(