aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Zulauf <jzulauf@LunarG.com>2018-01-16 15:32:45 -0700
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>2018-01-17 14:03:37 -0700
commita4042f34c76251347046616f25eafe8c636d5489 (patch)
treef8ae69418fbefe5571ebff64f39e35c1b18c2694 /scripts
parentce9d95abef14927b4842946079ff9ec4a72fba84 (diff)
downloadusermoji-a4042f34c76251347046616f25eafe8c636d5489.tar.xz
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vk_validation_stats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vk_validation_stats.py b/scripts/vk_validation_stats.py
index 0ec57971..af84c593 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)