From 353f8d1fff7819ccfd4342f728912d286e6f9ac7 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 14 Jun 2017 09:30:47 +0200 Subject: [PATCH] build: Fail on unsupported argument 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/20781 Reviewed-by: C.J. Collier Tested-by: jenkins-iotivity (cherry picked from commit ae20072dc07ad11d770bbeccdcbefee685aeb504) Reviewed-on: https://gerrit.iotivity.org/gerrit/21007 Reviewed-by: Rick Bell Reviewed-by: George Nash Reviewed-by: Kevin Kane Reviewed-by: Dan Mihai --- auto_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_build.py b/auto_build.py index f29318c..cf82336 100755 --- a/auto_build.py +++ b/auto_build.py @@ -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": -- 2.7.4