~bladernr/checkbox/1095713-set-pipefail-on-sleep-jobs

« back to all changes in this revision

Viewing changes to plugins/shell_test.py

  • Committer: Marc Tardif
  • Date: 2011-05-19 22:03:21 UTC
  • mfrom: (912.1.1 checkbox-clean)
  • Revision ID: marc.tardif@canonical.com-20110519220321-a6xpdol1bhnxs9xr
MergedĀ fromĀ 773667.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    def prompt_shell(self, interface, test):
36
36
        command = test.get("command")
37
37
        status = test.get("status", UNINITIATED)
38
 
        if command and status == UNINITIATED:
 
38
        plugin = test.get("plugin", "shell")
 
39
        if command and (status == UNINITIATED or plugin != "shell"):
39
40
            # Register temporary handler for message-result events
40
41
            def message_result(status, data, duration):
41
42
                test["status"] = status