get less useless and more useful printout from test.py when things fail
This commit is contained in:
parent
6c43499681
commit
27f4b88220
@ -37,6 +37,7 @@ def exe(command):
|
|||||||
universal_newlines=True).communicate()
|
universal_newlines=True).communicate()
|
||||||
|
|
||||||
if stderr:
|
if stderr:
|
||||||
|
sys.stderr.write(stdout)
|
||||||
sys.stderr.write(stderr)
|
sys.stderr.write(stderr)
|
||||||
|
|
||||||
return stdout, stderr
|
return stdout, stderr
|
||||||
@ -77,11 +78,12 @@ def configure_build_and_exe(name, setup_command, launcher=None):
|
|||||||
setup_command += ' build-%s' % stamp
|
setup_command += ' build-%s' % stamp
|
||||||
|
|
||||||
stdout, stderr = exe(setup_command)
|
stdout, stderr = exe(setup_command)
|
||||||
|
assert stderr == ''
|
||||||
|
|
||||||
os.chdir(os.path.join(HERE, name, 'build-%s' % stamp))
|
os.chdir(os.path.join(HERE, name, 'build-%s' % stamp))
|
||||||
|
|
||||||
stdout, stderr = exe(make_command)
|
stdout, stderr = exe(make_command)
|
||||||
# mi: remove <assert stderr == ''> due to warnings flushed to stderr
|
# we do not check for empty stderr due to warnings flushed to stderr
|
||||||
|
|
||||||
stdout, stderr = exe(binary)
|
stdout, stderr = exe(binary)
|
||||||
assert stderr == ''
|
assert stderr == ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user