From: Igor Stoppa Date: Thu, 15 Jan 2015 13:24:49 +0000 (+0200) Subject: Explicitly return 0 X-Git-Tag: 1.0~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb3723afa9916a18de23ac2748d61676e68cb789;p=services%2Fjenkins-scripts.git Explicitly return 0 Fixes one spurious semicolon and explicitly returns 0 on all the exit paths. Change-Id: I7b78d3cf5d65da8d9dacbc04a8aa35a66a5bdc84 --- diff --git a/job_test_build.py b/job_test_build.py index 6f7e026..92efd09 100755 --- a/job_test_build.py +++ b/job_test_build.py @@ -185,23 +185,23 @@ def main(): logging.error("Error: {0}".format(e)) fields["test_result"] = "PARAMETERS_ERRORS" propagate_results(image="", fields=fields); - return; + return 0 if not image_supported(file_name): logging.info("Image not supported by the tester.") fields["test_result"] = "IMAGE_NOT_SUPPORTED" propagate_results(image="", fields=fields) - return + return 0 image = fetch_image(fields["url"]) if image == "": fields["test_result"] = "IMAGE_NOT_FOUND" propagate_results(image="", fields=fields) - return + return 0 fields["test_result"] = test_image(image) propagate_results(image=image, fields=fields) - return + return 0