Merge lp:~fu-wei/lava-dispatcher/multinode into lp:lava-dispatcher/multinode

Proposed by Fu Wei
Status: Merged
Approved by: Neil Williams
Approved revision: no longer in the source branch.
Merged at revision: 641
Proposed branch: lp:~fu-wei/lava-dispatcher/multinode
Merge into: lp:lava-dispatcher/multinode
Diff against target: 33 lines (+4/-4)
1 file modified
lava_dispatcher/signals/__init__.py (+4/-4)
To merge this branch: bzr merge lp:~fu-wei/lava-dispatcher/multinode
Reviewer Review Type Date Requested Status
Neil Williams Approve
Review via email: mp+171289@code.launchpad.net

Description of the change

fix a bug for handle multi-node signals

To post a comment you must log in.
Revision history for this message
Neil Williams (codehelp) wrote :

Approved, good fix.

review: Approve
lp:~fu-wei/lava-dispatcher/multinode updated
641. By Neil Williams

merge branch to fix signal handler error.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_dispatcher/signals/__init__.py'
2--- lava_dispatcher/signals/__init__.py 2013-06-25 09:44:10 +0000
3+++ lava_dispatcher/signals/__init__.py 2013-06-25 12:27:39 +0000
4@@ -164,25 +164,25 @@
5 self._cur_handler.endtc(test_case_id)
6
7 def _on_SEND(self, message_id, message):
8- logging.debug("Handling signal <LAVA_SEND %>" % message_id)
9+ logging.debug("Handling signal <LAVA_SEND %s>" % message_id)
10 #TODO:add code here for real hand
11
12 def _on_SYNC(self, message_id):
13- logging.debug("Handling signal <LAVA_SYNC %>" % message_id)
14+ logging.debug("Handling signal <LAVA_SYNC %s>" % message_id)
15 #TODO:add code here for real hand
16 target = self.client.target_device
17 with target.runner() as runner:
18 runner._connection.sendline("<LAVA_SYNC_COMPLETE>")
19
20 def _on_WAIT(self, message_id, message):
21- logging.debug("Handling signal <LAVA_WAIT %>" % message_id)
22+ logging.debug("Handling signal <LAVA_WAIT %s>" % message_id)
23 #TODO:add code here for real hand
24 target = self.client.target_device
25 with target.runner() as runner:
26 runner._connection.sendline("<LAVA_WAIT_COMPLETE>")
27
28 def _on_WAIT_ALL(self, message_id, message):
29- logging.debug("Handling signal <LAVA_WAIT_ALL %>" % message_id)
30+ logging.debug("Handling signal <LAVA_WAIT_ALL %s>" % message_id)
31 #TODO:add code here for real hand
32 target = self.client.target_device
33 with target.runner() as runner:

Subscribers

People subscribed via source and target branches

to status/vote changes: