From d3c006c49662a4fc78451b4d0118f873a2b40be5 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 26 Apr 2017 11:15:33 +0800 Subject: [PATCH] Fix module validator report if skipping all files. --- test/sanity/validate-modules/validate-modules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sanity/validate-modules/validate-modules b/test/sanity/validate-modules/validate-modules index c4775ebda1..9a8f734aa7 100755 --- a/test/sanity/validate-modules/validate-modules +++ b/test/sanity/validate-modules/validate-modules @@ -979,9 +979,9 @@ def main(): if os.path.isfile(module): path = module if args.exclude and args.exclude.search(path): - sys.exit(0) + continue if ModuleValidator.is_blacklisted(path): - sys.exit(0) + continue with ModuleValidator(path, analyze_arg_spec=args.arg_spec, base_branch=args.base_branch, git_cache=git_cache) as mv: mv.validate()