Explicitly return 0
authorIgor Stoppa <igor.stoppa@intel.com>
Thu, 15 Jan 2015 13:24:49 +0000 (15:24 +0200)
committerXu Chang <changx.xu@intel.com>
Tue, 20 Jan 2015 08:48:21 +0000 (16:48 +0800)
Fixes one spurious semicolon and explicitly returns 0 on all the
exit paths.

Change-Id: I7b78d3cf5d65da8d9dacbc04a8aa35a66a5bdc84

job_test_build.py

index 6f7e026..92efd09 100755 (executable)
@@ -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