testing/infra/emulator: remove qemu warnings about audio
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 30 Jul 2017 04:49:46 +0000 (01:49 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 31 Jul 2017 19:26:06 +0000 (21:26 +0200)
commitd8ab6b2b54574a5e5d5818ca3e816d2afd159ad0
treef3ebe216b3e6f1ba4342a30e6ecc525b9dcede4e
parentaf6b5830ececa3a61afa70a35711654f0b2cc32a
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>
support/testing/infra/emulator.py