~dooferlad/lava-dispatcher/lava-dispatcher-busybox-fixes

« back to all changes in this revision

Viewing changes to lava_dispatcher/client/base.py

  • Committer: Antonio Terceiro
  • Date: 2013-07-24 16:56:18 UTC
  • Revision ID: antonio.terceiro@linaro.org-20130724165618-d2ij596bgnonlb7g
Make sure power_off() is always called at the end of a job

This way all device objects can always clean up after themselves. Previously
power_off was only called by TargetBasedClient#retrieve_results, i.e. the
device's power_off() was only called when the job contained a submit_results
action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
    def retrieve_results(self, result_disk):
476
476
        raise NotImplementedError(self.retrieve_results)
477
477
 
 
478
    def finish(self):
 
479
        pass
 
480
 
478
481
    # Android stuff
479
482
 
480
483
    def get_android_adb_interface(self):