diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-03 12:35:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-03 12:35:54 -0700 |
commit | b5b211ebbb922f23ed58a91c9d83d4b3fe4e205c (patch) | |
tree | d9007d471fd337e5c3249aef354c21fabc388531 | |
parent | 5958d3dc64ecfa6aafccc8805c319aeef2003f38 (diff) |
fix exit code on sanity fails
-rw-r--r-- | tools/shared.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py index 6c5578a3..c94c110e 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -136,17 +136,17 @@ def check_sanity(force=False): if not check_engine(COMPILER_ENGINE): print >> sys.stderr, 'FATAL: The JavaScript shell used for compiling (%s) does not seem to work, check the paths in %s' % (COMPILER_ENGINE, EM_CONFIG) - sys.exit(0) + sys.exit(1) if NODE_JS != COMPILER_ENGINE: if not check_engine(NODE_JS): print >> sys.stderr, 'FATAL: Node.js (%s) does not seem to work, check the paths in %s' % (NODE_JS, EM_CONFIG) - sys.exit(0) + sys.exit(1) for cmd in [CLANG, LLVM_LINK, LLVM_AR, LLVM_OPT, LLVM_AS, LLVM_DIS, LLVM_NM]: if not os.path.exists(cmd) and not os.path.exists(cmd + '.exe'): # .exe extension required for Windows print >> sys.stderr, 'FATAL: Cannot find %s, check the paths in %s' % (cmd, EM_CONFIG) - sys.exit(0) + sys.exit(1) try: subprocess.call([JAVA, '-version'], stdout=PIPE, stderr=PIPE) |