diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 267: make sure that we look for bundles on the device even if all test runs fail

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

Commit Message

Michael-Doyle Hudson March 28, 2012, 3:28 a.m. UTC
Merge authors:
  Michael Hudson-Doyle (mwhudson)
Related merge proposals:
  https://code.launchpad.net/~mwhudson/lava-dispatcher/set-any_device_bundles-more-aggressively/+merge/99659
  proposed by: Michael Hudson-Doyle (mwhudson)
------------------------------------------------------------
revno: 267 [merge]
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Wed 2012-03-28 16:25:53 +1300
message:
  make sure that we look for bundles on the device even if all test runs fail
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	2012-03-19 01:56:32 +0000
+++ lava_dispatcher/actions/lava-test.py	2012-03-28 03:13:38 +0000
@@ -66,6 +66,7 @@ 
         return super(cmd_lava_test_run, self).test_name() + ' (%s)' % test_name
 
     def run(self, test_name, test_options="", timeout=-1):
+        self.context.any_device_bundles = True
         logging.info("Executing lava_test_run %s command" % test_name)
         with self.client.tester_session() as session:
             session.run('mkdir -p %s' % self.context.lava_result_dir)
@@ -88,7 +89,6 @@ 
                     logging.exception("killing test failed, rebooting")
                     self.client.boot_linaro_image()
                 raise
-            self.context.any_device_bundles = True
             if rc is None:
                 raise OperationFailed("test case getting return value failed")
             elif rc != 0: