Some fixes for make check-acceptance on a POWER host
cover Some fixes for make check-acceptance on a POWER host
Here are several patches which address failures I see when attempting to run "make check-acceptance" on a POWER host machine.
David Gibson (3):
tests/acceptance: Specify arch for QueryCPUModelExpansion tests/acceptance: Handle ppc64le host arch correctly tests/acceptance: Increase timeout for LinuxSSH test
tests/acceptance/avocado_qemu/__init__.py | 2 ++ tests/acceptance/cpu_queries.py | 3 +++ tests/acceptance/linux_ssh_mips_malta.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.21.0
PATCH 1/3 tests/acceptance: Specify arch for QueryCPUModelExpansion
At the moment this test runs on whatever the host arch is. But it looks for 'unavailable-features' which is an x86 specific cpu property. Tag it to always use qemu-system-x86_64.
--- tests/acceptance/cpu_queries.py | 3 +++ 1 file changed, 3 insertions(+)
tests/acceptance/cpu_queries.py +3 -0
@@ -18,6 +18,9 @@ class QueryCPUModelExpansion(Test): """ def test(self): + """ + :avocado: tags=arch:x86_64 + """ self.vm.set_machine('none') self.vm.add_args('-S') self.vm.launch()
Signature · 1 line
2.21.0
Re: [Qemu-devel] [PATCH 1/3] tests/acceptance: Specify arch for QueryCPUModelExpansion
Quoted 8 lines · David Gibson
At the moment this test runs on whatever the host arch is. But it looks for 'unavailable-features' which is an x86 specific cpu property. Tag it to always use qemu-system-x86_64.
Signed-off-by David Gibson <[email protected]>--- tests/acceptance/cpu_queries.py | 3 +++ 1 file changed, 3 insertions(+)
Quoted 15 lines
tests/acceptance/cpu_queries.py +3
-0@@ -18,6 +18,9 @@ class QueryCPUModelExpansion(Test): """ def test(self): + """ + :avocado: tags=arch:x86_64 + """ self.vm.set_machine('none') self.vm.add_args('-S') self.vm.launch()
PATCH 2/3 tests/acceptance: Handle ppc64le host arch correctly
In reply to David Gibsonppc64 and ppc64le are different archs from the host kernel point of view and are advertised as such in uname. But these cover the same set of CPUs, just in different endianness modes. qemu-system-ppc64 handles both modes, so make sure we select the correct binary when running on ppc64le host architecture.
--- tests/acceptance/avocado_qemu/__init__.py | 2 ++ 1 file changed, 2 insertions(+)
tests/acceptance/avocado_qemu/__init__.py +2 -0
@@ -39,6 +39,8 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + if arch == 'ppc64le': + arch = 'ppc64' qemu_bin_relative_path = os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path):
Signature · 1 line
2.21.0
Re: [Qemu-devel] [PATCH 2/3] tests/acceptance: Handle ppc64le host arch correctly
Quoted 16 lines · David Gibson
ppc64 and ppc64le are different archs from the host kernel point of view and are advertised as such in uname. But these cover the same set of CPUs, just in different endianness modes. qemu-system-ppc64 handles both modes, so make sure we select the correct binary when running on ppc64le host architecture.
Signed-off-by David Gibson <[email protected]>--- tests/acceptance/avocado_qemu/__init__.py | 2 ++ 1 file changed, 2 insertions(+)tests/acceptance/avocado_qemu/__init__.py +0
-0
tests/acceptance/avocado_qemu/__init__.py def pick_default_qemu_bin(arch=None): · line 43
Quoted 5 lines
tests/acceptance/avocado_qemu/__init__.py +2
-0@@ -39,6 +39,8 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + if arch == 'ppc64le': + arch = 'ppc64'
I prefer the generic patch from Cleber:
https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03418.html
(I guess remember another version with a json file)
Quoted 4 lines
tests/acceptance/avocado_qemu/__init__.py +0
-0qemu_bin_relative_path = os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path):
Re: [Qemu-devel] [PATCH 2/3] tests/acceptance: Handle ppc64le host arch correctly
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · David Gibson
ppc64 and ppc64le are different archs from the host kernel point of view and are advertised as such in uname. But these cover the same set of CPUs, just in different endianness modes. qemu-system-ppc64 handles both modes, so make sure we select the correct binary when running on ppc64le host architecture.
Signed-off-by David Gibson <[email protected]>--- tests/acceptance/avocado_qemu/__init__.py | 2 ++ 1 file changed, 2 insertions(+)
Quoted 14 lines
tests/acceptance/avocado_qemu/__init__.py def pick_default_qemu_bin(arch=None): · line 43
Quoted 10 lines
tests/acceptance/avocado_qemu/__init__.py +2
-0@@ -39,6 +39,8 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + if arch == 'ppc64le': + arch = 'ppc64'I prefer the generic patch from Cleber:
https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03418.html
(I guess remember another version with a json file)
I hadn't seen that, that does indeed look better.
Quoted 6 lines
Quoted 5 lines
tests/acceptance/avocado_qemu/__init__.py +0
-0qemu_bin_relative_path = os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path):
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Re: [Qemu-devel] [PATCH 2/3] tests/acceptance: Handle ppc64le host arch correctly
Quoted 28 lines · David Gibson
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · David Gibson
ppc64 and ppc64le are different archs from the host kernel point of view and are advertised as such in uname. But these cover the same set of CPUs, just in different endianness modes. qemu-system-ppc64 handles both modes, so make sure we select the correct binary when running on ppc64le host architecture.
Signed-off-by David Gibson <[email protected]>--- tests/acceptance/avocado_qemu/__init__.py | 2 ++ 1 file changed, 2 insertions(+)Quoted 14 lines
tests/acceptance/avocado_qemu/__init__.py def pick_default_qemu_bin(arch=None): · line 43
Quoted 10 lines
tests/acceptance/avocado_qemu/__init__.py +2
-0@@ -39,6 +39,8 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + if arch == 'ppc64le': + arch = 'ppc64'I prefer the generic patch from Cleber:
https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03418.html
(I guess remember another version with a json file)
Quoted 1 line
I hadn't seen that, that does indeed look better.
Hrm. Well, it is better but it's been outstanding for like 8 months. I'd just like to get this working on a ppc host in the near future.
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
tests/acceptance/avocado_qemu/__init__.py +0
-0qemu_bin_relative_path = os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path):
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Philippe Mathieu-Daudé
Reviewed-byRe: [Qemu-devel] [PATCH 2/3] tests/acceptance: Handle ppc64le host arch correctly
Quoted 29 lines · David Gibson
Quoted 28 lines · David Gibson
Quoted 26 lines · Philippe Mathieu-Daudé
Quoted 16 lines · David Gibson
ppc64 and ppc64le are different archs from the host kernel point of view and are advertised as such in uname. But these cover the same set of CPUs, just in different endianness modes. qemu-system-ppc64 handles both modes, so make sure we select the correct binary when running on ppc64le host architecture.
Signed-off-by David Gibson <[email protected]>--- tests/acceptance/avocado_qemu/__init__.py | 2 ++ 1 file changed, 2 insertions(+)tests/acceptance/avocado_qemu/__init__.py +0
-0tests/acceptance/avocado_qemu/__init__.py def pick_default_qemu_bin(arch=None): · line 43
Quoted 5 lines
tests/acceptance/avocado_qemu/__init__.py +2
-0@@ -39,6 +39,8 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + if arch == 'ppc64le': + arch = 'ppc64'I prefer the generic patch from Cleber:
https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03418.html
(I guess remember another version with a json file)
Quoted 4 lines
Quoted 1 line
I hadn't seen that, that does indeed look better.
Hrm. Well, it is better but it's been outstanding for like 8 months. I'd just like to get this working on a ppc host in the near future.
True :S I wanted you to know Cleber was working on this, but I don't have any problem to get your fix merged and Cleber work added on top of it, so:
PATCH 3/3 tests/acceptance: Increase timeout for LinuxSSH test
In reply to David GibsonAt least on the hosts I use (a POWER8 Tuleta, a POWER9 Boston and an 8 cpu x86 instance in OpenStack) the linux_ssh_mips_malta tests in make check-acceptance frequently timeout. Increasing the timeout from 2.5 to 5 minutes makes that much less common.
--- tests/acceptance/linux_ssh_mips_malta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/acceptance/linux_ssh_mips_malta.py +1 -1
@@ -20,7 +20,7 @@ from avocado.utils import archive class LinuxSSH(Test): - timeout = 150 # Not for 'configure --enable-debug --enable-debug-tcg' + timeout = 300 # Not for 'configure --enable-debug --enable-debug-tcg' KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 ' VM_IP = '127.0.0.1'
Signature · 1 line
2.21.0