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:
parent
b8c51ec276
commit
33c62a1f58
1 changed files with 2 additions and 1 deletions
|
@ -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"]:
|
||||
|
|
Loading…
Reference in a new issue