# HG changeset patch # User Sebastien Jodogne # Date 1434541752 -7200 # Node ID 3670535fbd4b3c84942cad390fd7dca468e4bf76 # Parent f8d781d1d267b533f3998f2289d9ec2e1f9f8f52 fix external thread diff -r f8d781d1d267 -r 3670535fbd4b Tests/Toolbox.py --- a/Tests/Toolbox.py Wed Jun 17 13:45:54 2015 +0200 +++ b/Tests/Toolbox.py Wed Jun 17 13:49:12 2015 +0200 @@ -210,12 +210,13 @@ print 'Stopping the external command' external.terminate() + external.communicate() # Wait for the command to stop def __init__(self, command, env = None): self.thread_stop = threading.Event() self.thread = threading.Thread(target = self.ExternalCommandFunction, args = (10, self.thread_stop, command, env)) - self.daemon = True + #self.daemon = True self.thread.start() def stop(self):