diff mbox

[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
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Jan. 23, 2013, 12:36 a.m. UTC
------------------------------------------------------------
revno: 540
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
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
diff mbox

Patch

=== 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):