diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:44:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:44:25 -0700 |
commit | 01fb40715dfb3bf5c87e89924d0c307c62cad4e6 (patch) | |
tree | 5f8c58aac4ecae9ab9bd713a5da9b357008855dd | |
parent | a8dd361675208b58990eefcb62f822e3f1baf198 (diff) |
save output of configure and make in tests
-rw-r--r-- | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index fcbbc453..783fe4d6 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3096,9 +3096,11 @@ if 'benchmark' not in str(sys.argv): env['CFLAGS'] = env['EMMAKEN_CFLAGS'] = ' '.join(COMPILER_OPTS + COMPILER_TEST_OPTS) # Normal CFLAGS is ignored by some configure's. if configure: # Useful in debugging sometimes to comment this out (and the lines below up to and including the |make| call) env['EMMAKEN_JUST_CONFIGURE'] = '1' - Popen(configure + configure_args, stdout=PIPE, stderr=STDOUT, env=env).communicate()[0] + Popen(configure + configure_args, stdout=open(os.path.join(self.get_dir(), 'configure'), 'w'), + stderr=open(os.path.join(self.get_dir(), 'configure_err'), 'w'), env=env).communicate()[0] del env['EMMAKEN_JUST_CONFIGURE'] - Popen(make + make_args, stdout=PIPE, stderr=STDOUT, env=env).communicate()[0] + Popen(make + make_args, stdout=open(os.path.join(self.get_dir(), 'make'), 'w'), + stderr=open(os.path.join(self.get_dir(), 'make_err'), 'w'), env=env).communicate()[0] bc_file = os.path.join(project_dir, 'bc.bc') self.do_link(map(lambda lib: os.path.join(project_dir, 'cbuild', lib) if build_subdir else os.path.join(project_dir, lib), generated_libs), bc_file) if cache and GlobalCache is not None: |