~brian-murray/checkbox/brian

« back to all changes in this revision

Viewing changes to plugins/shell_test.py

  • Committer: Marc Tardif
  • Date: 2009-10-12 15:46:11 UTC
  • Revision ID: marc.tardif@canonical.com-20091012154611-nurqd24e7dmi8rnf
Removed policykit and using dbus directly instead which fixes bug #435714.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        command = test.get("command")
37
37
        status = test.get("status", UNINITIATED)
38
38
        if command and status == UNINITIATED:
39
 
            job = Job(command, test.get("environ"), test.get("timeout"))
40
 
            interface.show_progress(_("Running shell tests..."),
41
 
                job.execute)
42
 
            test["data"] = job.data
43
 
            test["duration"] = job.duration
44
 
            test["status"] = job.status
 
39
            job = Job(command, test.get("environ"),
 
40
                test.get("timeout"), test.get("user"))
 
41
            (status, data, duration) = interface.show_progress(
 
42
                _("Running shell tests..."), job.execute)
 
43
            test["data"] = data
 
44
            test["duration"] = duration
 
45
            test["status"] = status
45
46
 
46
47
    def report_shell(self, test):
47
48
        self._manager.reactor.fire("report-test", test)