Skip to content

Commit

Permalink
tests: skip webcam test if vivid module can't be loaded
Browse files Browse the repository at this point in the history
It's blacklisted on Whonix, so skip the test there.
  • Loading branch information
marmarek committed Aug 7, 2024
1 parent 4f75f75 commit 97a6dde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/qvctests/integ.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def test_020_webcam(self):
self.view.name,
'@default',
target=self.source.name)
self.source.run("modprobe vivid", user="root", wait=True)
ret = self.source.run("modprobe vivid", user="root", wait=True)
if ret != 0:
self.skipTest("Cannot load 'vivid' module")
# wait for device to appear, or a timeout
self.wait_for_video0(self.source)

Expand Down

0 comments on commit 97a6dde

Please sign in to comment.