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:
parent
ab3093db18
commit
1b8edd9abb
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue