Browse Source

Fix behaviour with removed files

The build test was checking dependencies for deleted files as well
which let to errors. Ignore deleted files.

This fixes the --check-build from
http://logs.openstack.org/86/51386/7/check/gate-openstack-manuals-validate-build/48ad22c/console.html

Change-Id: Id8ee991829cd9f5adefe45a895671f83edb9b04e
changes/60/60060/1
Andreas Jaeger 8 years ago
parent
commit
49faab28a9
  1. 6
      test.py

6
test.py

@ -347,7 +347,7 @@ def validate_individual_files(rootdir, exceptions, verbose,
no_validated = 0
no_failed = 0
# Do not select delete files, just Added, Copied, Modified, Renamed,
# Do not select deleted files, just Added, Copied, Modified, Renamed,
# or Type changed
modified_files = get_modified_files(rootdir, "--diff-filter=ACMRT")
@ -583,7 +583,9 @@ def find_affected_books(rootdir, book_exceptions, verbose,
if not build_all_books:
# Generate list of modified_files
modified_files = get_modified_files(rootdir)
# Do not select deleted files, just Added, Copied, Modified, Renamed,
# or Type changed
modified_files = get_modified_files(rootdir, "--diff-filter=ACMRT")
modified_files = map(lambda x: os.path.abspath(x), modified_files)
# 2. Find all modified files and where they are included

Loading…
Cancel
Save