Skip to content

Commit

Permalink
Merge pull request #48 from w3c/finish
Browse files Browse the repository at this point in the history
Add a finish handler to the Servo executor.
  • Loading branch information
andreastt committed Nov 7, 2014
2 parents 20af1c0 + 291fa69 commit 01d6682
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wptrunner/executors/executorservo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def run_test(self, test):


self.proc = ProcessHandler(self.command,
processOutputLine=[self.on_output])
processOutputLine=[self.on_output],
onFinish=self.on_finish)
self.proc.run()

timeout = test.timeout * self.timeout_multiplier
Expand Down Expand Up @@ -67,3 +68,6 @@ def on_output(self, line):
self.logger.process_output(self.proc.pid,
line,
" ".join(self.command))

def on_finish(self):
self.result_flag.set()

0 comments on commit 01d6682

Please sign in to comment.