Commit 9f187014 authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: 2.4 syntax fix

parent 810431d1
......@@ -228,18 +228,19 @@ def run_subprocess(arg, options):
timeout.start()
output = ''
try:
if options.capture:
while True:
data = popen.stdout.read(1)
if not data:
break
output += data
if options.verbosity >= 2:
sys.stdout.write(data)
retcode.append(popen.wait())
except:
popen.kill()
raise
try:
if options.capture:
while True:
data = popen.stdout.read(1)
if not data:
break
output += data
if options.verbosity >= 2:
sys.stdout.write(data)
retcode.append(popen.wait())
except:
popen.kill()
raise
finally:
timeout.cancel()
return retcode[0], output
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment