test/test_pkgrel_bump: make sure pmb doesn't cross compile

When build_default_device_arch is set in your local pmbootstrap config,
some tests fail because pmbootstrap tries to cross compile. Make sure
this option is disabled in the test context.

Signed-off-by: Caleb Connolly <kc@postmarketos.org>
Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230629-suffix-type-hint-v1-5-e92802ae20a8@postmarketos.org%3E
This commit is contained in:
Caleb Connolly 2023-07-12 23:09:11 +01:00 committed by Oliver Smith
parent ab3093db18
commit 1b8edd9abb
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ def test_pkgrel_bump_high_level(args, tmpdir):
tmpdir = str(tmpdir)
setup_work(args, tmpdir)
# Make sure we don't try and cross compile
pmbootstrap(args, tmpdir, ["config", "build_default_device_arch", "False"])
# Let pkgrel_bump exit normally
pmbootstrap(args, tmpdir, ["build", "testlib", "testapp", "testsubpkg"])
pmbootstrap(args, tmpdir, ["pkgrel_bump", "--dry", "--auto"])