CI: test_directory_structure.py: fix flake8 (!1069)

It seems that the .gitlab-ci.yml did not trigger properly when the file
was changed last time, and now it does in this MR. Fix the file to make
it pass.
This commit is contained in:
Oliver Smith 2020-03-21 22:31:57 +01:00
parent 630c9c2af9
commit e87f2ec27b
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -16,6 +16,7 @@ expected_directories = [
"temp",
]
# pmbootstrap allows placing APKBUILDs in arbitrarily nested directories.
# This test makes sure all of them are in one of the expected locations.
def test_directories():
@ -24,6 +25,7 @@ def test_directories():
assert apkbuilds == expected, "Found APKBUILD in unexpected directory. " \
"Consider adding it to test_directory_structure.py!"
# Make sure files are either:
# - in root directory (README.md)
# - hidden (.gitlab-ci/, device/.shared-patches/)
@ -49,4 +51,4 @@ def test_files_belong_to_package():
package_dir = dirpath
assert not files or package_dir, "Found files that do not belong to any package: " \
f"{dirpath}/{files}"
f"{dirpath}/{files}"