tests: add a test for packages_get_locally_built_apks() (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-14 04:22:42 +02:00 committed by Oliver Smith
parent c89b53a87e
commit d75f1cf525
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 45 additions and 2 deletions

View file

@ -27,7 +27,7 @@ def config_file(tmp_path_factory, request):
"no-repos": "aports = "}
file = _testdir / "pmbootstrap.cfg"
print(f"config_file: {out_file}")
print(f"CONFIG: {out_file}")
cfg = configs[flavour]
contents = open(file).read().format(workdir, cfg)
@ -122,8 +122,9 @@ def pmb_args(config_file, mock_context, logfile):
args.cross = False
args.log = logfile
print("init_args")
init_args(args)
print(f"WORK: {get_context().config.work}")
# Sanity check
assert ".pytest_tmp" in get_context().config.work.parts