Skip to content

Commit

Permalink
virsh_detach_device_alias: Skip test when no input
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
Slancaster1 committed Sep 3, 2024
1 parent 595840c commit 304b4a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 304b4a6

Please sign in to comment.