From patchwork Wed Jan 23 00:36:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 14219 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 6643123E1A for ; Wed, 23 Jan 2013 00:36:16 +0000 (UTC) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by fiordland.canonical.com (Postfix) with ESMTP id 1D975A186F2 for ; Wed, 23 Jan 2013 00:36:16 +0000 (UTC) Received: by mail-ve0-f175.google.com with SMTP id db12so768497veb.20 for ; Tue, 22 Jan 2013 16:36:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :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=Chml6aMYwIh1zQEHfIEMfkjiAbzyAfT78Zh3+uv28fQ=; b=E72JNmwXrIwFIdQ+ZFk4UeKQbs5JSOEvh4MiP/IYQ7xVvy91XJvLLRT3qtnjc53QjC YZMpUiZtWjryN7ltGAb3LJp8FbmtuVJlLCO3gpgyYWvbukK5Nmp8o7Afc1XwEcBccxJc r2JlF4RvMqAZo7r323yb1iecngOTUPlbougSQaNnkdQV1bDeE39HnOGs14gUWyapJ9Cc 8/SS1JLd00YGz4VIRM6nbO/Xjisj3dbMvGC4niIJ9RpDyYXeNm3iC/AxKuVuDWL90Hf8 xr2I6RuPUD0qeowtjbJ4YX83XmG8AYoupsdtK6eO5P2s2YzM30zZ+sYRhuu15N5EaonQ fwxg== X-Received: by 10.52.176.6 with SMTP id ce6mr22669813vdc.57.1358901375516; Tue, 22 Jan 2013 16:36: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.58.145.101 with SMTP id st5csp278866veb; Tue, 22 Jan 2013 16:36:14 -0800 (PST) X-Received: by 10.180.90.106 with SMTP id bv10mr24164801wib.12.1358901374459; Tue, 22 Jan 2013 16:36:14 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id fy9si6797369wjb.199.2013.01.22.16.36.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jan 2013 16:36: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 1TxoK5-00079D-SR for ; Wed, 23 Jan 2013 00:36:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C351AE0027 for ; Wed, 23 Jan 2013 00:36: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: 540 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 540: this is a hack, but work around rtsm.log attachment breakage Message-Id: <20130123003613.13841.54595.launchpad@ackee.canonical.com> Date: Wed, 23 Jan 2013 00:36: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="16430"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 71f866f50d35e1329beb530fa9903a712ed2ffd3 X-Gm-Message-State: ALoCoQmyePy228cOUXCcYPobM8HAFAzI9u49ACKglPyfJiEOQmKwWnH0ts9PseQ+4tfF6qw6TJNO ------------------------------------------------------------ revno: 540 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Wed 2013-01-23 13:35:28 +1300 message: this is a hack, but work around rtsm.log attachment breakage modified: lava_dispatcher/device/fastmodel.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/device/fastmodel.py' --- lava_dispatcher/device/fastmodel.py 2013-01-22 02:14:27 +0000 +++ lava_dispatcher/device/fastmodel.py 2013-01-23 00:35:28 +0000 @@ -225,8 +225,9 @@ '''returns attachments to go in the "lava_results" test run''' # if the simulator never got started we won't even get to a logfile if getattr(self._sim_proc, 'logfile', None) is not None: - content = self._sim_proc.logfile.getvalue() - return [create_attachment('rtsm.log', content)] + if getattr(self._sim_proc.logfile, 'getvalue', None) is not None: + content = self._sim_proc.logfile.getvalue() + return [create_attachment('rtsm.log', content)] return [] def get_device_version(self):