Skip to content

Commit

Permalink
Merge pull request #5122 from yuumasato/dont-check-logs-path-len
Browse files Browse the repository at this point in the history
Don't check for path length of logs directory
  • Loading branch information
ggbecker committed Jan 21, 2020
2 parents 34eba09 + 8d29c78 commit 489067a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ensure_paths_are_short.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def main():
ssg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
max_path = ""
for dir_, _, files in os.walk(ssg_root):
# Don't check for path len of log files
# They are not shipped nor used during build
current_relative_path = os.path.relpath(dir_, ssg_root)
if current_relative_path.startswith("tests/logs/"):
continue
for file_ in files:
path = os.path.relpath(os.path.join(dir_, file_), ssg_root)
if len(path) > len(max_path):
Expand Down

0 comments on commit 489067a

Please sign in to comment.