Skip to content

Commit

Permalink
test: Disable USB removal test in a container
Browse files Browse the repository at this point in the history
This is because it fails as we never get the removal event. In both podman and docker

Signed-off-by: Hubert Figuière <[email protected]>
  • Loading branch information
hfiguiere committed Nov 17, 2024
1 parent b70b738 commit d2e1553
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ def cb_device_events(session_handle, events):
)

@pytest.mark.parametrize("usb_queries", ["vnd:04a9", None])
@pytest.mark.skipif(
("GITHUB_ACTIONS" in os.environ and os.environ["GITHUB_ACTIONS"] == "true")
or (
"container" in os.environ
and (
os.environ["container"] == "docker"
or os.environ["container"] == "podman"
)
),
reason="Test fail in containers",
)
def test_device_remove(self, portal_mock, app_id, usb_queries):
device_events_signal_count = 0
devices_received = 0
Expand Down

0 comments on commit d2e1553

Please sign in to comment.