mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/cleber/tags/python-next-pull-request' into staging
Python (acceptance tests) queue, 2019-08-28 # gpg: Signature made Thu 29 Aug 2019 02:11:22 BST # gpg: using RSA key 7ABB96EB8B46B94D5E0FE9BB657E8D33A5F209F3 # gpg: Good signature from "Cleber Rosa <crosa@redhat.com>" [marginal] # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 7ABB 96EB 8B46 B94D 5E0F E9BB 657E 8D33 A5F2 09F3 * remotes/cleber/tags/python-next-pull-request: VNC Acceptance test: simplify test names Boot Linux Console Test: add a test for ppc64 + pseries Acceptance tests: drop left over usage of "🥑 enable" tests/requirements.txt: pin paramiko version requirement tests.acceptance.avocado_qemu: Add support for powerpc Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ matrix:
|
||||
|
||||
# Acceptance (Functional) tests
|
||||
- env:
|
||||
- CONFIG="--python=/usr/bin/python3 --target-list=x86_64-softmmu,mips-softmmu,mips64el-softmmu,aarch64-softmmu,arm-softmmu,s390x-softmmu,alpha-softmmu"
|
||||
- CONFIG="--python=/usr/bin/python3 --target-list=x86_64-softmmu,mips-softmmu,mips64el-softmmu,aarch64-softmmu,arm-softmmu,s390x-softmmu,alpha-softmmu,ppc64-softmmu"
|
||||
- TEST_CMD="make check-acceptance"
|
||||
after_failure:
|
||||
- cat tests/results/latest/job.log
|
||||
|
||||
@@ -39,6 +39,9 @@ def pick_default_qemu_bin(arch=None):
|
||||
"""
|
||||
if arch is None:
|
||||
arch = os.uname()[4]
|
||||
# qemu binary path does not match arch for powerpc, handle it
|
||||
if 'ppc64le' in arch:
|
||||
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):
|
||||
|
||||
@@ -354,3 +354,22 @@ class BootLinuxConsole(Test):
|
||||
self.vm.launch()
|
||||
console_pattern = 'Kernel command line: %s' % kernel_command_line
|
||||
self.wait_for_console_pattern(console_pattern)
|
||||
|
||||
def test_ppc64_pseries(self):
|
||||
"""
|
||||
:avocado: tags=arch:ppc64
|
||||
:avocado: tags=machine:pseries
|
||||
"""
|
||||
kernel_url = ('https://download.fedoraproject.org/pub/fedora-secondary/'
|
||||
'releases/29/Everything/ppc64le/os/ppc/ppc64/vmlinuz')
|
||||
kernel_hash = '3fe04abfc852b66653b8c3c897a59a689270bc77'
|
||||
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
|
||||
|
||||
self.vm.set_machine('pseries')
|
||||
self.vm.set_console()
|
||||
kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=hvc0'
|
||||
self.vm.add_args('-kernel', kernel_path,
|
||||
'-append', kernel_command_line)
|
||||
self.vm.launch()
|
||||
console_pattern = 'Kernel command line: %s' % kernel_command_line
|
||||
self.wait_for_console_pattern(console_pattern)
|
||||
|
||||
@@ -17,9 +17,6 @@ from avocado.utils import wait
|
||||
|
||||
|
||||
class Migration(Test):
|
||||
"""
|
||||
:avocado: enable
|
||||
"""
|
||||
|
||||
timeout = 10
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class Vnc(Test):
|
||||
self.assertEqual(set_password_response['error']['desc'],
|
||||
'Could not set password')
|
||||
|
||||
def test_vnc_change_password_requires_a_password(self):
|
||||
def test_change_password_requires_a_password(self):
|
||||
self.vm.add_args('-nodefaults', '-S', '-vnc', ':0')
|
||||
self.vm.launch()
|
||||
self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled'])
|
||||
@@ -48,7 +48,7 @@ class Vnc(Test):
|
||||
self.assertEqual(set_password_response['error']['desc'],
|
||||
'Could not set password')
|
||||
|
||||
def test_vnc_change_password(self):
|
||||
def test_change_password(self):
|
||||
self.vm.add_args('-nodefaults', '-S', '-vnc', ':0,password')
|
||||
self.vm.launch()
|
||||
self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled'])
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
# in the tests/venv Python virtual environment. For more info,
|
||||
# refer to: https://pip.pypa.io/en/stable/user_guide/#id1
|
||||
avocado-framework==68.0
|
||||
paramiko
|
||||
paramiko==2.4.2
|
||||
|
||||
Reference in New Issue
Block a user