diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 180: Fix timeout usage in lava_test_install

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

Commit Message

Paul Larson Dec. 15, 2011, 12:56 a.m. UTC
------------------------------------------------------------
revno: 180
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-dispatcher
timestamp: Wed 2011-12-14 18:54:40 -0600
message:
  Fix timeout usage in lava_test_install
modified:
  lava_dispatcher/actions/lava-test.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.py'
--- lava_dispatcher/actions/lava-test.py	2011-12-06 03:19:42 +0000
+++ lava_dispatcher/actions/lava-test.py	2011-12-15 00:54:40 +0000
@@ -101,12 +101,13 @@ 
 
             if register:
                 for test_def_url in register:
-                    session.run('lava-test register-test  ' + test_def_url)
+                    session.run('lava-test register-test  ' + test_def_url,
+                        timeout=60)
 
             for test in tests:
-                session.run('lava-test install %s' % test)
+                session.run('lava-test install %s' % test, timeout=timeout)
 
-            session.run('rm -rf lava-test')
+            session.run('rm -rf lava-test', timeout=60)
 
 
 class cmd_add_apt_repository(BaseAction):