[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/7] tests/acceptance/virtio-gpu.py: combine kernel command line
From: |
Cleber Rosa |
Subject: |
[PULL 4/7] tests/acceptance/virtio-gpu.py: combine kernel command line |
Date: |
Tue, 20 Jul 2021 19:30:15 -0400 |
Both tests use the same kernel command line arguments, so there's no
need to have a common and then an additional set of arguments.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210714174051.28164-5-crosa@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
tests/acceptance/virtio-gpu.py | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/tests/acceptance/virtio-gpu.py b/tests/acceptance/virtio-gpu.py
index 20a59fabf3..fbde278705 100644
--- a/tests/acceptance/virtio-gpu.py
+++ b/tests/acceptance/virtio-gpu.py
@@ -34,7 +34,7 @@ class VirtioGPUx86(Test):
:avocado: tags=cpu:host
"""
- KERNEL_COMMON_COMMAND_LINE = "printk.time=0 "
+ KERNEL_COMMAND_LINE = "printk.time=0 console=ttyS0 rdinit=/bin/bash"
KERNEL_URL = (
"https://archives.fedoraproject.org/pub/fedora"
"/linux/releases/33/Everything/x86_64/os/images"
@@ -58,9 +58,6 @@ def test_virtio_vga_virgl(self):
"""
:avocado: tags=device:virtio-vga
"""
- kernel_command_line = (
- self.KERNEL_COMMON_COMMAND_LINE + "console=ttyS0 rdinit=/bin/bash"
- )
# FIXME: should check presence of virtio, virgl etc
self.require_accelerator('kvm')
@@ -78,7 +75,7 @@ def test_virtio_vga_virgl(self):
"-initrd",
initrd_path,
"-append",
- kernel_command_line,
+ self.KERNEL_COMMAND_LINE,
)
try:
self.vm.launch()
@@ -96,9 +93,6 @@ def test_vhost_user_vga_virgl(self):
"""
:avocado: tags=device:vhost-user-vga
"""
- kernel_command_line = (
- self.KERNEL_COMMON_COMMAND_LINE + "console=ttyS0 rdinit=/bin/bash"
- )
# FIXME: should check presence of vhost-user-gpu, virgl, memfd etc
self.require_accelerator('kvm')
@@ -145,7 +139,7 @@ def test_vhost_user_vga_virgl(self):
"-initrd",
initrd_path,
"-append",
- kernel_command_line,
+ self.KERNEL_COMMAND_LINE,
)
self.vm.launch()
self.wait_for_console_pattern("as init process")
--
2.31.1
- [PULL for 6.1 0/7] Python and Acceptance Tests, Cleber Rosa, 2021/07/20
- [PULL 1/7] tests/acceptance/virtio-gpu.py: use require_accelerator(), Cleber Rosa, 2021/07/20
- [PULL 2/7] tests/acceptance/virtio-gpu.py: combine x86_64 arch tags, Cleber Rosa, 2021/07/20
- [PULL 3/7] tests/acceptance/virtio-gpu.py: combine CPU tags, Cleber Rosa, 2021/07/20
- [PULL 4/7] tests/acceptance/virtio-gpu.py: combine kernel command line,
Cleber Rosa <=
- [PULL 6/7] tests/acceptance/virtio-gpu.py: provide kernel and initrd hashes, Cleber Rosa, 2021/07/20
- [PULL 5/7] tests/acceptance/virtio-gpu.py: use virtio-vga-gl, Cleber Rosa, 2021/07/20
- [PULL 7/7] remote/memory: Replace share parameter with ram_flags, Cleber Rosa, 2021/07/20
- Re: [PULL for 6.1 0/7] Python and Acceptance Tests, Peter Maydell, 2021/07/21