From patchwork Tue Feb 21 10:27:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattias Backman X-Patchwork-Id: 6860 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 4F19723EAE for ; Tue, 21 Feb 2012 10:27:13 +0000 (UTC) Received: from mail-tul01m020-f180.google.com (mail-tul01m020-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 10EBCA180DF for ; Tue, 21 Feb 2012 10:27:12 +0000 (UTC) Received: by mail-tul01m020-f180.google.com with SMTP id uo19so10652922obb.11 for ; Tue, 21 Feb 2012 02:27:12 -0800 (PST) Received: from mr.google.com ([10.50.89.232]) by 10.50.89.232 with SMTP id br8mr18305822igb.30.1329820032807 (num_hops = 1); Tue, 21 Feb 2012 02:27:12 -0800 (PST) Received: by 10.50.89.232 with SMTP id br8mr14715423igb.30.1329820032765; Tue, 21 Feb 2012 02:27:12 -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.231.11.10 with SMTP id r10csp88959ibr; Tue, 21 Feb 2012 02:27:11 -0800 (PST) Received: by 10.180.102.35 with SMTP id fl3mr20107387wib.22.1329820031119; Tue, 21 Feb 2012 02:27:11 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n59si746628wed.135.2012.02.21.02.27.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Feb 2012 02:27:11 -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 1RzmwA-0006V3-F7 for ; Tue, 21 Feb 2012 10:27:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6342FE0188 for ; Tue, 21 Feb 2012 10:27:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-image-tools/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 494 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-image-tools/linaro-image-tools/trunk] Rev 494: Fix test so that a startupfiles dir is not needed. Message-Id: <20120221102710.30857.84168.launchpad@ackee.canonical.com> Date: Tue, 21 Feb 2012 10:27: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="14838"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 45289f12f4c0b23ced9ed59f4da1c98cc6622e59 X-Gm-Message-State: ALoCoQn+bM0JnQ5m0o2iFFWRo1LA78Pr+a0l8sJ/xcsAp48E2DPi6+WAjHtr3ka/ewfaB6wUABOU ------------------------------------------------------------ revno: 494 committer: Mattias Backman branch nick: linaro-image-tools timestamp: Tue 2012-02-21 09:44:42 +0100 message: Fix test so that a startupfiles dir is not needed. modified: linaro_image_tools/media_create/tests/test_media_create.py --- lp:linaro-image-tools https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk You are subscribed to branch lp:linaro-image-tools. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription === modified file 'linaro_image_tools/media_create/tests/test_media_create.py' --- linaro_image_tools/media_create/tests/test_media_create.py 2012-02-21 08:01:08 +0000 +++ linaro_image_tools/media_create/tests/test_media_create.py 2012-02-21 08:44:42 +0000 @@ -1217,6 +1217,8 @@ return classmethod( lambda *args, **kwargs: self.funcs_calls.append(name)) + self.useFixture(MockSomethingFixture(os.path, 'exists', + lambda file: True)) fixture = MockCmdRunnerPopenFixture() self.useFixture(fixture) expected_commands = ['sudo -E cp boot/u-boot.bin ./startupfiles']