We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044b988 commit 9c4e8bfCopy full SHA for 9c4e8bf
tests/qvctests/integ.py
@@ -15,11 +15,13 @@ def setUp(self):
15
self.skipTest('qubes-video-companion not installed')
16
17
def wait_for_video0(self, vm):
18
- vm.run(
+ retcode = vm.run(
19
'for i in `seq 30`; do '
20
' v4l2-ctl --list-formats /dev/video0 2>/dev/null | grep -F "[0]" && break; '
21
' sleep 0.5; '
22
- 'done; sleep 1', wait=True)
+ 'done; sleep 1; test -e /dev/video0', wait=True)
23
+ self.assertEqual(retcode, 0,
24
+ f"Timeout waiting for /dev/video0 in {vm.name}")
25
26
def wait_for_video0_disconnect(self, vm):
27
vm.run(
0 commit comments