From ea71584c6545b9f414635040188633046fb7e6fc Mon Sep 17 00:00:00 2001 From: ricolin Date: Tue, 23 Feb 2021 16:49:34 +0800 Subject: add openstack-python3-xena-jobs-arm64 job This is a non-voting job to validate py3 unittests on AArch64 Also fixed test units to use source install type with Debian as Kolla does not support Debian/binary on !x86-64 Co-authored-by: Marcin Juszkiewicz Task: 41911 Story: 2007938 Change-Id: I6889555820adcaee8a86e70b5c3ea31c15e3192c --- kolla/tests/test_build.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kolla') diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index 10d70ce5a..3e9dd0634 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -370,6 +370,8 @@ class KollaWorkerTest(base.TestCase): itertools.product(rh_base, rh_type), itertools.product(deb_base, deb_type)): self.conf.set_override('base', base_distro) + if base_distro == 'debian' and install_type == 'binary': + self.conf.set_override('base_arch', 'x86_64') self.conf.set_override('install_type', install_type) # should no exception raised build.KollaWorker(self.conf) @@ -528,6 +530,7 @@ class KollaWorkerTest(base.TestCase): def test_build_distro_python_version_debian(self): """check distro_python_version for Debian""" self.conf.set_override('base', 'debian') + self.conf.set_override('install_type', 'source') kolla = build.KollaWorker(self.conf) self.assertEqual('3.9', kolla.distro_python_version) @@ -581,6 +584,7 @@ class KollaWorkerTest(base.TestCase): def test_build_distro_package_manager_debian(self): """check distro_package_manager apt for debian""" self.conf.set_override('base', 'debian') + self.conf.set_override('install_type', 'source') kolla = build.KollaWorker(self.conf) self.assertEqual('apt', kolla.distro_package_manager) @@ -605,6 +609,7 @@ class KollaWorkerTest(base.TestCase): def test_base_package_type_debian(self): """check base_package_type deb for debian""" self.conf.set_override('base', 'debian') + self.conf.set_override('install_type', 'source') kolla = build.KollaWorker(self.conf) self.assertEqual('deb', kolla.base_package_type) -- cgit v1.2.3