From 04f61170a72d20000f3cc910544376f9f9e19912 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 30 Sep 2013 09:36:56 +0900 Subject: [PATCH] [tools.darkcult] fix result check in break/continue mode --- tools/darkroom/darkcult.py | 5 +++-- tools/testspr/test.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/darkroom/darkcult.py b/tools/darkroom/darkcult.py index fa538899..b41cc83b 100755 --- a/tools/darkroom/darkcult.py +++ b/tools/darkroom/darkcult.py @@ -26,7 +26,8 @@ def continue_build(command): sys.stdout.write(".") sys.stdout.flush() result = subprocess.call(command[0], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) - logging.critical(command[1]) + if not result: + logging.critical(command[1]) return result def main(): @@ -116,5 +117,5 @@ def main(): ] )) -if __name__=="__main__": +if __name__ == "__main__": sys.exit(main()) diff --git a/tools/testspr/test.py b/tools/testspr/test.py index 1162add1..a22bf331 100644 --- a/tools/testspr/test.py +++ b/tools/testspr/test.py @@ -57,5 +57,5 @@ def main(): ] )) -if __name__=="__main__": +if __name__ == "__main__": sys.exit(main())