From eb745aaf745657901443867b60419a4e28a52416 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Thu, 26 Mar 2015 13:06:40 +0900 Subject: [PATCH] Fix: exit code is 0 even when check-boot-jars.py fails Fix the bug that build is still success when boot jars contain non-whitelisted classes. Now, check-boot-jars.py correctly finishes with exit code 1 when non-whitelisted classes are found. Change-Id: Id5c80ef9fdb70213d878d569f6033be2c9eb90d3 --- core/tasks/check_boot_jars/check_boot_jars.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tasks/check_boot_jars/check_boot_jars.py b/core/tasks/check_boot_jars/check_boot_jars.py index 89d9ee827..5a0ec4016 100755 --- a/core/tasks/check_boot_jars/check_boot_jars.py +++ b/core/tasks/check_boot_jars/check_boot_jars.py @@ -64,10 +64,10 @@ def CheckJar(jar): def main(argv): if len(argv) < 2: print __doc__ - sys.exit(1) + return 1 if not LoadWhitelist(argv[0]): - sys.exit(1) + return 1 passed = True for jar in argv[1:]: @@ -80,4 +80,4 @@ def main(argv): if __name__ == '__main__': - main(sys.argv[1:]) + sys.exit(main(sys.argv[1:]))