aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Ricardo Martincoski <ricardo.martincoski@gmail.com>2017-07-30 01:49:46 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-31 21:26:06 +0200
commitd8ab6b2b54574a5e5d5818ca3e816d2afd159ad0 (patch)
treef3ebe216b3e6f1ba4342a30e6ecc525b9dcede4e /support
parentaf6b5830ececa3a61afa70a35711654f0b2cc32a (diff)
downloadbuildroot-d8ab6b2b54574a5e5d5818ca3e816d2afd159ad0.tar.gz
buildroot-d8ab6b2b54574a5e5d5818ca3e816d2afd159ad0.tar.bz2
testing/infra/emulator: remove qemu warnings about audio
The default audio backend for qemu is configured at compile time. It generates annoying warning messages to qemu's stderr when running our tests, like these: pulseaudio: set_sink_input_volume() failed pulseaudio: Reason: Invalid argument pulseaudio: set_sink_input_mute() failed pulseaudio: Reason: Invalid argument Explicitly set the audio backend to "none" at runtime to remove those messages from our logs. There is no command line argument for this, so use an environment variable when starting qemu. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rw-r--r--support/testing/infra/emulator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/testing/infra/emulator.py b/support/testing/infra/emulator.py
index 9b079cbf23..588a92f6a2 100644
--- a/support/testing/infra/emulator.py
+++ b/support/testing/infra/emulator.py
@@ -65,7 +65,8 @@ class Emulator(object):
qemu_cmd += ["-append", " ".join(kernel_cmdline)]
self.logfile.write("> starting qemu with '%s'\n" % " ".join(qemu_cmd))
- self.qemu = pexpect.spawn(qemu_cmd[0], qemu_cmd[1:], timeout=5)
+ self.qemu = pexpect.spawn(qemu_cmd[0], qemu_cmd[1:], timeout=5,
+ env={"QEMU_AUDIO_DRV": "none"})
# We want only stdout into the log to avoid double echo
self.qemu.logfile_read = self.logfile