From 304b4a6b17905bc601abcf90a3fa18c453b68ec6 Mon Sep 17 00:00:00 2001 From: Slancaster1 Date: Tue, 3 Sep 2024 12:53:27 -0400 Subject: [PATCH] virsh_detach_device_alias: Skip test when no input - The Problem Tests rhel.virsh.detach_device_alias.live.input.passthrough and rhel.virsh.detach_device_alias.config.input.passthrough do not pass if there is not input device, as they require a device to passthrough to the vm - The Solution Skip the test if no input device can be found Signed-off-by: Slancaster1 --- libvirt/tests/src/virsh_cmd/domain/virsh_detach_device_alias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/virsh_cmd/domain/virsh_detach_device_alias.py b/libvirt/tests/src/virsh_cmd/domain/virsh_detach_device_alias.py index b48bc7d38f..1ac27c4108 100644 --- a/libvirt/tests/src/virsh_cmd/domain/virsh_detach_device_alias.py +++ b/libvirt/tests/src/virsh_cmd/domain/virsh_detach_device_alias.py @@ -270,7 +270,7 @@ def start_usbredirserver(): if input_type == "passthrough": event = process.run("ls /dev/input/event*", shell=True, ignore_status=True).stdout if len(event) == 0: - test.error("Not found any input devices") + test.skip("Not found any input devices") input_dict.update({"source_evdev": event.decode('utf-8').split()[0]}) input_obj = Input(type_name=input_type)