From: Igor Stoppa Date: Tue, 20 Jan 2015 10:10:03 +0000 (+0200) Subject: Improve logging about image testablity. X-Git-Tag: 1.0~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba532ebc6b194d6c54098c631cd917a9aee66fb5;p=services%2Fjenkins-scripts.git Improve logging about image testablity. Log also when the image is supported. In both cases (supported/unsupported), log also the name of the image. Change-Id: I3fde2a5525078810f4c65a5f916e3145b1d127d7 --- diff --git a/job_test_build.py b/job_test_build.py index 558c495..5d53f46 100755 --- a/job_test_build.py +++ b/job_test_build.py @@ -145,7 +145,9 @@ def image_supported(image): logging.info("Verifying testability of image {0}.".format(image)) subprocess.check_output(command) except subprocess.CalledProcessError: + logging.info("Image {0} not supported by the tester.".format(image)) return False + logging.info("Image {0} supported by the tester.".format(image)) return True def propagate_results(fields, image): @@ -195,7 +197,6 @@ def main(): 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=file_name, fields=fields) return 0