Browse Source

Handle FILE_EXCEPTIONS properly

The test for exceptions was testing the full path instead of just the file.

Also, fix invocation of validate_all_files.

Change-Id: Iecc48b40cbd19769b983017083b1427a057c1e0c
changes/60/60060/1
Andreas Jaeger 8 years ago
parent
commit
3da9ba776b
  1. 5
      test.py

5
test.py

@ -364,7 +364,7 @@ def validate_individual_files(rootdir, exceptions, verbose,
for f in modified_files:
base_f = os.path.basename(f)
if (base_f == "pom.xml" or
f in exceptions):
base_f in exceptions):
continue
any_failures = validate_one_file(
schema, rootdir, f, verbose, any_failures,
@ -630,7 +630,8 @@ def main(args):
if args.check_syntax or args.check_niceness:
if args.force:
validate_all_files(args.path, FILE_EXCEPTIONS, args.verbose,
args.check_niceness, args.non_voting)
args.check_syntax, args.check_niceness,
args.non_voting)
else:
validate_individual_files(args.path, FILE_EXCEPTIONS,
args.verbose, args.check_syntax,

Loading…
Cancel
Save