build: Use sys.exit instead of exit
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 17 May 2017 10:33:49 +0000 (12:33 +0200)
committerPhil Coval <philippe.coval@osg.samsung.com>
Tue, 27 Jun 2017 08:40:05 +0000 (08:40 +0000)
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 <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20877
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit f99878445ce793627a4af92e26c9b1ce797b8949)
Reviewed-on: https://gerrit.iotivity.org/gerrit/21005
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
auto_build.py

index 596d8b6..f29318c 100755 (executable)
@@ -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