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:
parent
630c9c2af9
commit
e87f2ec27b
1 changed files with 3 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue