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 10, 2024
1 parent e41995a commit 2295b7a
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 wait_for_pulseaudio_startup(self, vm):
self.loop.run_until_complete(self.wait_for_session(self.testvm1))
Expand Down Expand Up @@ -64,8 +65,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())
pulseaudio_units = "pulseaudio.socket pulseaudio.service"
pipewire_units = "pipewire.socket wireplumber.service pipewire.service"
Expand Down

0 comments on commit 2295b7a

Please sign in to comment.