From patchwork Thu Sep 20 15:24:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 11578 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 6B7B623E54 for ; Thu, 20 Sep 2012 15:24:17 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 974483D09933 for ; Thu, 20 Sep 2012 15:24:16 +0000 (UTC) Received: by ieje10 with SMTP id e10so3078633iej.11 for ; Thu, 20 Sep 2012 08:24:16 -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=akq0wd90brwlJ0R47D925eiweaykOiy6xkeUPBCSYa0=; b=Z9ih/Yc2oMA/6kjZjiFikoRmSryew77c+GdgO677gjUiUV9pOpapfHKp0WU0hLSHxk kZ/SghR3B0Go1vbxt9jFFXRU5X53xBdDGQq8rqnOti/0m9C27+oXHQ+a1EgVvgN/gHaF eHAOh0DYkBPzD6TEBMTK9Lu0P/uWSYkOJveInUKcZ4IBYCqXBwV8PMmZuz9ioHISdpdg 2vRAD36x8wyZ+wJaBIHMe9ZVfpE3jv3LHlNTqwaykyKIkpNsOp9lh81vYzTSkg3or6Gg Ty5bnBLZgwsnIrudWytTHhNrJms5R9ptrHV0+GiBz/gYiPH/ZTAOHw4568vHwVCuxkpf zivQ== Received: by 10.50.237.41 with SMTP id uz9mr2018333igc.43.1348154655996; Thu, 20 Sep 2012 08:24:15 -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.50.184.232 with SMTP id ex8csp81161igc; Thu, 20 Sep 2012 08:24:14 -0700 (PDT) Received: by 10.216.136.230 with SMTP id w80mr1379664wei.199.1348154653795; Thu, 20 Sep 2012 08:24:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gj2si14664540wib.18.2012.09.20.08.24.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Sep 2012 08:24:13 -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 1TEibt-0006Pn-3D for ; Thu, 20 Sep 2012 15:24:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id EBB14E2237 for ; Thu, 20 Sep 2012 15:24:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 178 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 178: simplify bzr logic in the installer Message-Id: <20120920152412.11715.53788.launchpad@ackee.canonical.com> Date: Thu, 20 Sep 2012 15:24:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15985"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: d5cf51d63a0640d61d3b73be598769bbc688b36e X-Gm-Message-State: ALoCoQkwvUjLaLHZYwWuGoUDU9vDMKyk7AwZTSHax595vqUD1zkE631uqPmJorDwYZKI/2cNL0ts ------------------------------------------------------------ revno: 178 committer: Andy Doan branch nick: trunk timestamp: Thu 2012-09-20 10:13:23 -0500 message: simplify bzr logic in the installer modified: lava_test/core/installers.py --- lp:lava-test https://code.launchpad.net/~linaro-validation/lava-test/trunk You are subscribed to branch lp:lava-test. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription === modified file 'lava_test/core/installers.py' --- lava_test/core/installers.py 2012-09-19 17:11:20 +0000 +++ lava_test/core/installers.py 2012-09-20 15:13:23 +0000 @@ -171,13 +171,9 @@ @staticmethod def _bzr_source(testdir, dirname): with changed_directory('%s/%s' % (testdir, dirname)): - revno = subprocess.check_output( - ['bzr', 'log', '-r', '-1', '--log-format=line']).split(':')[0] - info = subprocess.check_output(['bzr', 'info']) - for line in info.split('\n'): - line = line.strip() - if line.startswith('parent branch:'): - url = line.split(':', 1)[-1] + revno = subprocess.check_output(['bzr', 'revno']).strip() + url = subprocess.check_output( + ['bzr', 'config', 'parent_location']).strip() return { 'project_name': dirname, 'branch_vcs': 'bzr',