diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-09-03 15:25:13 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-09-04 10:42:00 +0300 |
commit | a5f8358b108fe041741650c980d2252e0dc99897 (patch) | |
tree | bcfa50d704a22c189a1d08de157ad5000ce485da /tests/test_other.py | |
parent | 9de7165f9157812a827f96a73c70dea1d909b763 (diff) |
Utilize EM_BUILD_VERBOSE in other.test_cmake.
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 1723db91..956dfa41 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -299,12 +299,13 @@ f.close() try: os.chdir(tempdirname) + verbose = int(os.getenv('EM_BUILD_VERBOSE')) != 0 # Run Cmake cmd = ['cmake', '-DCMAKE_TOOLCHAIN_FILE='+emscriptencmaketoolchain, '-DCMAKE_BUILD_TYPE=' + configuration, '-DCMAKE_MODULE_PATH=' + path_from_root('cmake').replace('\\', '/'), '-G', generator, cmakelistsdir] - ret = Popen(cmd, stdout=PIPE, stderr=PIPE).communicate() + ret = Popen(cmd, stdout=None if verbose else PIPE, stderr=None if verbose else PIPE).communicate() if len(ret) > 1 and ret[1] != None and len(ret[1].strip()) > 0: print >> sys.stderr, ret[1] # If there were any errors, print them directly to console for diagnostics. if len(ret) > 1 and ret[1] != None and 'error' in ret[1].lower(): @@ -314,8 +315,8 @@ f.close() assert os.path.exists(tempdirname + '/Makefile'), 'CMake call did not produce a Makefile!' # Build - cmd = [make_command] - ret = Popen(cmd, stdout=PIPE).communicate() + cmd = [make_command] + ['VERBOSE=1'] if verbose else [] + ret = Popen(cmd, stdout=None if verbose else PIPE).communicate() if len(ret) > 1 and ret[1] != None and len(ret[1].strip()) > 0: print >> sys.stderr, ret[1] # If there were any errors, print them directly to console for diagnostics. if len(ret) > 0 and ret[0] != None and 'error' in ret[0].lower() and not '0 error(s)' in ret[0].lower(): |