diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 186: Fix detection of lava-test install failure (lp: 905457)

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

Commit Message

Paul Larson Jan. 3, 2012, 6:29 p.m. UTC
Merge authors:
  Spring Zhang (qzhang)
Related merge proposals:
  https://code.launchpad.net/~qzhang/lava-dispatcher/fix-905457/+merge/86500
  proposed by: Spring Zhang (qzhang)
  review: Approve - Paul Larson (pwlars)
------------------------------------------------------------
revno: 186 [merge]
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-dispatcher
timestamp: Tue 2012-01-03 12:25:33 -0600
message:
  Fix detection of lava-test install failure (lp: 905457)
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-15 00:54:40 +0000
+++ lava_dispatcher/actions/lava-test.py	2011-12-21 06:21:39 +0000
@@ -44,11 +44,13 @@ 
 
     #Test if lava-test installed
     try:
-        session.run('lava-test help', response="list-test", timeout=60)
+        rc = session.run('lava-test help', response="list-test", timeout=60)
     except:
         tb = traceback.format_exc()
         client.sio.write(tb)
         raise CriticalError("lava-test deployment failed")
+    if rc != 0:
+        raise CriticalError("lava-test deployment failed")
 
 
 class cmd_lava_test_run(BaseAction):