Skip to content

Commit

Permalink
tests: use new decorator to skip audio tests on whonix-gateway
Browse files Browse the repository at this point in the history
It's faster as the test is skipped before calling setUp().
  • Loading branch information
marmarek committed Dec 8, 2024
1 parent 86dc173 commit 0c2c171
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qubes/tests/integ/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from qubes.tests.integ.vm_qrexec_gui import TC_00_AppVMMixin, in_qemu


@qubes.tests.skipIfTemplate("whonix-g")
class TC_00_AudioMixin(TC_00_AppVMMixin):
def start_extra_vm_logging(self, vm):
"""Log user journal and .xsession-errors to the console to be
Expand Down Expand Up @@ -77,8 +78,6 @@ def wait_for_pulseaudio_startup(self, vm):
self.loop.run_until_complete(asyncio.sleep(1))

def prepare_audio_test(self, backend):
if "whonix-g" in self.template:
self.skipTest("whonix gateway have no audio")
self.loop.run_until_complete(self.testvm1.start())
self.start_extra_vm_logging(self.testvm1)
pulseaudio_units = "pulseaudio.socket pulseaudio.service"
Expand Down

0 comments on commit 0c2c171

Please sign in to comment.