build: Fail on unsupported argument
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 14 Jun 2017 07:30:47 +0000 (09:30 +0200)
committerPhil Coval <philippe.coval@osg.samsung.com>
Wed, 28 Jun 2017 00:03:59 +0000 (00:03 +0000)
Also use same sys.exit everywhere

1.3-rel should fail un tizen_unsecured
because that component is not yet merged

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I98e14eff713a6434d0521bc2235d127826a45acf
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20781
Reviewed-by: C.J. Collier <cjcollier@linuxfoundation.org>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
(cherry picked from commit ae20072dc07ad11d770bbeccdcbefee685aeb504)
Reviewed-on: https://gerrit.iotivity.org/gerrit/21007
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
auto_build.py

index f29318c..cf82336 100755 (executable)
@@ -20,7 +20,7 @@ Usage:
         python %s -c
     '''
     print (helpstr % (script, script))
-    sys.exit()
+    sys.exit(1)
 
 def call_scons(build_options, extra_option_str):
     """
@@ -42,7 +42,7 @@ def call_scons(build_options, extra_option_str):
         sys.stdout.flush()
         exit_code = subprocess.Popen(cmd_line, shell=True).wait()
         if exit_code != 0:
-            exit(exit_code)
+            sys.exit(exit_code)
 
 def build_all(flag, extra_option_str):
     if platform.system() == "Linux":