mesontest: use unbuffered IO

This helps when running mesontest as part of CI.
pull/1851/head
Rob Doolittle 8 years ago committed by Jussi Pakkanen
parent d8d62a9353
commit 56b41d1c79
  1. 4
      mesonbuild/backend/ninjabackend.py
  2. 2
      mesontest.py

@ -812,7 +812,7 @@ int dummy;
def generate_tests(self, outfile):
self.serialize_tests()
test_exe = get_meson_script(self.environment, 'mesontest')
cmd = [sys.executable, test_exe, '--no-rebuild']
cmd = [sys.executable, '-u', test_exe, '--no-rebuild']
if not self.environment.coredata.get_builtin_option('stdsplit'):
cmd += ['--no-stdsplit']
if self.environment.coredata.get_builtin_option('errorlogs'):
@ -824,7 +824,7 @@ int dummy;
elem.write(outfile)
# And then benchmarks.
cmd = [sys.executable, test_exe, '--benchmark', '--logbase',
cmd = [sys.executable, '-u', test_exe, '--benchmark', '--logbase',
'benchmarklog', '--num-processes=1', '--no-rebuild']
elem = NinjaBuildElement(self.all_outputs, 'benchmark', 'CUSTOM_COMMAND', ['all', 'PHONY'])
elem.add_item('COMMAND', cmd)

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3 -u
# Copyright 2016 The Meson development team

Loading…
Cancel
Save