Skip to content
Snippets Groups Projects
Unverified Commit 33c62a1f authored by Alexey Minnekhanov's avatar Alexey Minnekhanov :electric_plug:
Browse files

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.
parent b8c51ec2
Branches
No related tags found
No related merge requests found
......@@ -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"]:
......
  • Administrator @root

    mentioned in commit 2907dfd7

    By Alexey Min on 2021-07-24T00:45:58

    · Imported

    mentioned in commit 2907dfd7

    By Alexey Min on 2021-07-24T00:45:58

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 91e345f7

    By Alexey Min on 2021-07-24T05:46:59

    · Imported

    mentioned in commit 91e345f7

    By Alexey Min on 2021-07-24T05:46:59

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 991650b6

    By Alexey Min on 2021-08-02T20:44:32

    · Imported

    mentioned in commit 991650b6

    By Alexey Min on 2021-08-02T20:44:32

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 9f9d38f1

    By Alexey Min on 2021-08-02T23:24:16

    · Imported

    mentioned in commit 9f9d38f1

    By Alexey Min on 2021-08-02T23:24:16

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 58388372

    By Alexey Min on 2021-08-03T00:08:37

    · Imported

    mentioned in commit 58388372

    By Alexey Min on 2021-08-03T00:08:37

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment