CI: fix broken test_aports_kernel (MR 2272)

Missing '/' in aports path will make glob below invalid.
It will find 0 files and thus effectively skip all tests.
Construct full path using f-strings.

Double '/' in path that can be there if args.aports ends
with slash is harmless.
This commit is contained in:
Alexey Minnekhanov 2021-06-24 20:11:17 +03:00
parent b8c51ec276
commit 33c62a1f58
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED

View file

@ -15,7 +15,8 @@ def test_aports_kernel(args):
"""
Various tests performed on the /**/linux-* aports.
"""
for path in glob.iglob(args.aports + "**/linux-*/APKBUILD", recursive=True):
for path in glob.iglob(f"{args.aports}/**/linux-*/APKBUILD", recursive=True):
apkbuild = pmb.parse.apkbuild(args, path)
if "pmb:cross-native" not in apkbuild["options"]: