From c53af760dfcb360fa8ee7a4d9d4381ad87d71945 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sun, 1 Mar 2015 23:41:32 -0600 Subject: runtest.py: fix cleanup to use kill. Still doesn't work with C# and VB. --- runtest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtest.py b/runtest.py index e90fc68..2abd9d6 100755 --- a/runtest.py +++ b/runtest.py @@ -35,8 +35,10 @@ class Runner(): def __init__(self, args, redirect=False): print "args: %s" % repr(args) if redirect: - print "using redirect" - self.p = Popen(args, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=STDOUT) + #cmd = '/bin/bash -c "' + " ".join(args) + ' |tee /dev/null"' + cmd = " ".join(args) + ' |tee /dev/null' + print "using redirect cmd: '%s'" % cmd + self.p = Popen(cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=STDOUT, shell=True) self.stdin = self.p.stdin self.stdout = self.p.stdout else: @@ -74,7 +76,7 @@ class Runner(): def cleanup(self): if self.p: - self.p.terminate() + self.p.kill() self.p = None -- cgit v1.2.3