From patchwork Fri Jan 28 12:23:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guilherme Salgado X-Patchwork-Id: 33 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:39:22 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.10 with SMTP id b10cs37677yan; Fri, 28 Jan 2011 04:23:29 -0800 (PST) Received: by 10.216.8.199 with SMTP id 49mr2952419wer.101.1296217408685; Fri, 28 Jan 2011 04:23:28 -0800 (PST) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id u21si29412936weq.8.2011.01.28.04.23.27; Fri, 28 Jan 2011 04:23:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PinMN-0002n2-Ig for ; Fri, 28 Jan 2011 12:23:27 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 8ACE02E8025 for ; Fri, 28 Jan 2011 12:23:27 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-maintainers/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 267 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-maintainers/linaro-image-tools/trunk] Rev 267: Update tests/integration.txt to match the current state of the code. We should remember to run t... Message-Id: <20110128122327.32751.59899.launchpad@loganberry.canonical.com> Date: Fri, 28 Jan 2011 12:23:27 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="12274"; Instance="initZopeless config overlay" X-Launchpad-Hash: 15e33e012f8d11f276517875f078fa606e8eda20 ------------------------------------------------------------ revno: 267 committer: Guilherme Salgado branch nick: trunk timestamp: Fri 2011-01-28 10:21:07 -0200 message: Update tests/integration.txt to match the current state of the code. We should remember to run them more often. modified: tests/integration.txt --- lp:linaro-image-tools https://code.launchpad.net/~linaro-maintainers/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-maintainers/linaro-image-tools/trunk/+edit-subscription === modified file 'tests/integration.txt' --- tests/integration.txt 2011-01-11 21:26:54 +0000 +++ tests/integration.txt 2011-01-28 12:21:07 +0000 @@ -1,5 +1,5 @@ -A few integration tests we can run while the migration to python is not -complete. They probably require root or access to specific block devices so +A few integration tests we can run to test things on a higher level. +These will probably require root or access to specific block devices so they are not meant to be automated. # This should print nothing to stdout but will unpack the given binary @@ -10,18 +10,19 @@ # Partition (for real!) /dev/sdb for a beagle board and return the devices # for the boot and root partitions. >>> from linaro_media_create.partitions import Media, setup_partitions - >>> setup_partitions('beagle', Media('/dev/sdb'), 32, None, 'boot', - ... 'root', 'ext3', '2e82008e-1af3-4699-8521-3bf5bac1e67a', True, - ... True, True) + >>> from linaro_media_create.boards import board_configs + >>> setup_partitions( + ... board_configs['beagle'], Media('/dev/sdb'), None, 'boot', + ... 'root', 'ext3', True, True, True) Checking that no-one is using this disk right now ... ('/dev/sdb1', '/dev/sdb2') # Partition /tmp/beagle.img for a beagle board and return the loopback # devices for the boot and root partitions. - >>> setup_partitions('beagle', Media('/tmp/beagle.img'), 32, '2G', 'boot', - ... 'root', 'ext3', '2e82008e-1af3-4699-8521-3bf5bac1e67a', True, - ... True, True) + >>> setup_partitions( + ... board_configs['beagle'], Media('/tmp/beagle.img'), '2G', 'boot', + ... 'root', 'ext3', True, True, True) Warning: /tmp/beagle.img is not a block device ... ('/dev/loop0', '/dev/loop1')