diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 515: handle timeout being unspecified (i.e. -1) properly in the lava_test_shell action

Message ID 20130103002114.29511.57935.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Jan. 3, 2013, 12:21 a.m. UTC
------------------------------------------------------------
revno: 515
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2013-01-03 11:30:20 +1300
message:
  handle timeout being unspecified (i.e. -1) properly in the lava_test_shell action
modified:
  lava_dispatcher/actions/lava_test_shell.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/actions/lava_test_shell.py'
--- lava_dispatcher/actions/lava_test_shell.py	2012-12-11 00:23:15 +0000
+++ lava_dispatcher/actions/lava_test_shell.py	2013-01-02 22:30:20 +0000
@@ -490,6 +490,8 @@ 
 
         with target.runner() as runner:
             start = time.time()
+            if timeout == -1:
+                timeout = runner._connection.timeout
             initial_timeout = timeout
             while self._keep_running(runner, timeout, signal_director):
                 elapsed = time.time() - start