Skip to content

Commit

Permalink
tests: try to collect more logs in audio tests
Browse files Browse the repository at this point in the history
Especially, preserve .xsession-errors and user's journall by getting
them to the console (which is then saved in dom0 in
/var/log/xen/console).
  • Loading branch information
marmarek committed Dec 6, 2024
1 parent 6f20b83 commit cd42d76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qubes/tests/integ/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ 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.loop.run_until_complete(
self.testvm1.run_for_stdio("chmod a+w /dev/console", user="root"))
self.loop.run_until_complete(self.testvm1.run(
"systemd-run --no-block sh -c 'tail -F "
"/home/user/.xsession-errors >> /dev/console'",
user='root'))
self.loop.run_until_complete(self.testvm1.run(
"systemd-run --user --no-block sh -c "
"'journalctl --user -f >> /dev/console'"))
pulseaudio_units = "pulseaudio.socket pulseaudio.service"
pipewire_units = "pipewire.socket wireplumber.service pipewire.service"
if backend == "pipewire":
Expand Down

0 comments on commit cd42d76

Please sign in to comment.