From: Philippe Coval Date: Wed, 17 May 2017 10:33:49 +0000 (+0200) Subject: build: Use sys.exit instead of exit X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61dcfa99fc2cae243d9cf16c6de43cc8c035cf4b;p=platform%2Fupstream%2Fiotivity.git build: Use sys.exit instead of exit This change is to fix conflict between master and 1.3-rel Reviewed-on: https://gerrit.iotivity.org/gerrit/19955 Bug: https://jira.iotivity.org/browse/IOT-2237 Change-Id: Ib000a648b889d7d9956d6b26a9dc2111e7b96200 Origin: https://gerrit.iotivity.org/gerrit/#/c/20877/ Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/20877 Tested-by: jenkins-iotivity Reviewed-by: Ziran Sun Reviewed-by: Ashok Babu Channa (cherry picked from commit f99878445ce793627a4af92e26c9b1ce797b8949) Reviewed-on: https://gerrit.iotivity.org/gerrit/21005 Reviewed-by: Mats Wichmann Reviewed-by: Habib Virji --- diff --git a/auto_build.py b/auto_build.py index 596d8b6..f29318c 100755 --- a/auto_build.py +++ b/auto_build.py @@ -395,7 +395,7 @@ def build_tizen(flag, extra_option_str): print ("Running : " + cmd_line) exit_code = subprocess.Popen([cmd_line], shell=True).wait() if exit_code != 0: - exit(exit_code) + sys.exit(exit_code) print ("*********** Build for Tizen octbstack lib and sample *************") build_extra_options = "-f resource/csdk/stack/samples/tizen/build/SConscript " + extra_option_str