From: John Zulauf Date: Tue, 16 Jan 2018 22:32:45 +0000 (-0700) Subject: layers: Fix doc validation file list check X-Git-Tag: sdk-1.0.68.0~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98776efd76dc403ac74838c650695c8bb6be4a11;p=platform%2Fupstream%2FVulkan-LoaderAndValidationLayers.git layers: Fix doc validation file list check The check for required files was counting the files multiple times and aborting silently. The check now correct counts files and exits with non-zero exit code on failure. Change-Id: I5b158f7cca0dd541571d95c00c3450139daf32c4 --- diff --git a/scripts/vk_validation_stats.py b/scripts/vk_validation_stats.py index 0ec5797..af84c59 100755 --- a/scripts/vk_validation_stats.py +++ b/scripts/vk_validation_stats.py @@ -192,12 +192,12 @@ class ValidationSource: filepath = '../%s/layers/%s' % (build_dir, source) if os.path.isfile(filepath): qualified_paths.append(filepath) - continue + break if len(self.generated_source_files) != len(qualified_paths): print("Error: Unable to locate one or more of the following source files in the %s directories" % (", ".join(generated_source_directories))) print(self.generated_source_files) print("Skipping documentation validation test") - quit() + exit(1) else: self.source_files.extend(qualified_paths)