From patchwork Wed Nov 21 22:57:13 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: 13045 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 E6C0C23FC0 for ; Wed, 21 Nov 2012 22:57:16 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6BFFEA18604 for ; Wed, 21 Nov 2012 22:57:16 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so2815898iag.11 for ; Wed, 21 Nov 2012 14:57:15 -0800 (PST) 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=lew51H4kGw62Uq+HqdNlvEUvkDwhd9BH+H0mcQmxl6g=; b=GVn09HU0ZMzR2Gm8QAvd1mIlr/Rjo2nVoi+1GHlwfUxO91z2aNHAHxOvBbtTZJm1qq 5V4cZ9ANrjC4aU/mU1VSkkqJ4z3XAaNZBpaHRdWANJZ6Nl1V+Mga3qkIEojuqlY6eGzj im7aRegxPS+3zheij0J1xl+i5s5n3uTg6b8sX7hT64MZF8EX72gWhgD/EyLkDBpuru8q BPLgg5IObIN1A1bPhCHOd7C9CcGmHFfK38+RuH89CDGmfm6UXZ7/RvKaYd89OHW2h6qy t1C/q+ObgBzCySHRp/FWV+WQqHrmUsib0PSEe3UyKUcQz+ZUIoC0WiP/bMFfM8+mSYLG bhHg== Received: by 10.50.152.137 with SMTP id uy9mr1073407igb.62.1353538635682; Wed, 21 Nov 2012 14:57:15 -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.50.67.148 with SMTP id n20csp116892igt; Wed, 21 Nov 2012 14:57:14 -0800 (PST) Received: by 10.180.103.106 with SMTP id fv10mr1202286wib.19.1353538634181; Wed, 21 Nov 2012 14:57:14 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id x5si881431wex.150.2012.11.21.14.57.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 14:57:14 -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 1TbJEH-0008Dm-G4 for ; Wed, 21 Nov 2012 22:57:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6BEA2E00B3 for ; Wed, 21 Nov 2012 22:57:13 +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: 462 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 462: replicate BZR_HOME=/dev/null hack for getting a testdef from bzr Message-Id: <20121121225713.12917.6315.launchpad@ackee.canonical.com> Date: Wed, 21 Nov 2012 22:57:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16293"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: d0bd1879c2f0f5eb647fe11e500506336e2f45ad X-Gm-Message-State: ALoCoQlu8xrzoD3Xu6aUzog4SfSbeAUEWhaZIow+y36sDPcnURzRczwcd7X8cNuKBRi/xpdw1G9O ------------------------------------------------------------ revno: 462 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Thu 2012-11-22 11:55:57 +1300 message: replicate BZR_HOME=/dev/null hack for getting a testdef from bzr modified: lava_dispatcher/actions/lava_test_shell.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_shell.py' --- lava_dispatcher/actions/lava_test_shell.py 2012-11-21 13:02:46 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2012-11-21 22:55:57 +0000 @@ -272,12 +272,13 @@ if revision is None: revision = '-1' - subprocess.check_call(['bzr', - 'branch', - '-r', - revision, - testdef_repo, - bzrdir]) + # Pass non-existent BZR_HOME value, or otherwise bzr may + # have non-reproducible behavior because it may rely on + # bzr whoami value, presence of ssh keys, etc. + subprocess.check_call( + ['bzr', 'branch', '-r', revision, testdef_repo, bzrdir], + env={'BZR_HOME': '/dev/null', 'BZR_LOG': '/dev/null'}) + return bzrdir except Exception as e: logging.error('Unable to get test definition from bzr\n' + str(e))