From patchwork Tue Nov 8 06:57:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Spring Zhang X-Patchwork-Id: 4953 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 8A54923E0E for ; Tue, 8 Nov 2011 06:57:20 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 75FD0A186E9 for ; Tue, 8 Nov 2011 06:57:20 +0000 (UTC) Received: by faan26 with SMTP id n26so274996faa.11 for ; Mon, 07 Nov 2011 22:57:20 -0800 (PST) Received: by 10.152.144.73 with SMTP id sk9mr7908673lab.34.1320735440148; Mon, 07 Nov 2011 22:57:20 -0800 (PST) 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.152.14.103 with SMTP id o7cs82571lac; Mon, 7 Nov 2011 22:57:19 -0800 (PST) Received: by 10.227.202.140 with SMTP id fe12mr31300320wbb.27.1320735437495; Mon, 07 Nov 2011 22:57:17 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gc14si226685wbb.111.2011.11.07.22.57.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Nov 2011 22:57:17 -0800 (PST) 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 1RNfcS-00022O-RF for ; Tue, 08 Nov 2011 06:57:16 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C0D5AE03B3 for ; Tue, 8 Nov 2011 06:57:16 +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: 154 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 154: Add l-m-c version to metadata Message-Id: <20111108065716.11692.77442.launchpad@ackee.canonical.com> Date: Tue, 08 Nov 2011 06:57:16 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14231"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 60ffe8781d4067eb3974559a286ce176bf5df612 Merge authors: Spring Zhang (qzhang) Related merge proposals: https://code.launchpad.net/~qzhang/lava-dispatcher/fix-886102/+merge/81324 proposed by: Spring Zhang (qzhang) review: Approve - Yongqin Liu (liuyq0307) ------------------------------------------------------------ revno: 154 [merge] committer: Spring Zhang branch nick: fix-886102 timestamp: Tue 2011-11-08 01:53:51 -0500 message: Add l-m-c version to metadata modified: lava_dispatcher/actions/deploy.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/deploy.py' --- lava_dispatcher/actions/deploy.py 2011-10-20 15:20:56 +0000 +++ lava_dispatcher/actions/deploy.py 2011-11-08 05:23:50 +0000 @@ -155,6 +155,13 @@ logging.info("Downloading the %s file" % rootfs_url) rootfs_path = download(rootfs_url, tarball_dir) + logging.info("linaro-media-create version information") + cmd = "sudo linaro-media-create -v" + rc, output = getstatusoutput(cmd) + metadata = self.context.test_data.get_metadata() + metadata['target.linaro-media-create-version'] = output + self.context.test_data.add_metadata(metadata) + image_file = os.path.join(tarball_dir, "lava.img") #XXX Hack for removing startupfiles from snowball hwpacks if client.device_type == "snowball_sd":