Fix isolated test runner
This commit is contained in:
parent
00db78d89e
commit
3db6d8352a
1 changed files with 8 additions and 8 deletions
|
|
@ -55,14 +55,14 @@ def run(verbosity=1):
|
||||||
for test in isolated_tests:
|
for test in isolated_tests:
|
||||||
print(('testing %s' % test).center(80))
|
print(('testing %s' % test).center(80))
|
||||||
|
|
||||||
cmd = [sys.executable, '-m', test]
|
cmd = [sys.executable, '-m', test]
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT)
|
stderr=subprocess.STDOUT)
|
||||||
for line in p.stdout:
|
for line in p.stdout:
|
||||||
print(line.decode('utf8'), end='')
|
print(line.decode('utf8'), end='')
|
||||||
p.wait()
|
p.wait()
|
||||||
if p.returncode:
|
if p.returncode:
|
||||||
raise Exception("%s returned: %d" % p.returncode)
|
raise Exception("%s returned: %d" % (test, p.returncode))
|
||||||
|
|
||||||
return testresult
|
return testresult
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue