Skip to content

Commit 648daa4

Browse files
authored
Merge pull request #4060 from grandixximo/fix/4058-ui-smoke-sound
test: suppress audio output in ui-smoke launcher
2 parents baa8445 + 6f15754 commit 648daa4

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

tests/ui-smoke/_lib/asound.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Loaded via ALSA_CONFIG_PATH by ui-smoke launch.sh. Redirect the
2+
# default PCM/CTL to alsa-lib's null devices to silence the tests.
3+
<confdir:alsa.conf>
4+
5+
pcm.!default {
6+
type null
7+
}
8+
ctl.!default {
9+
type null
10+
}

tests/ui-smoke/_lib/launch.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export QT_QUICK_BACKEND=software
4141
export QSG_RHI_BACKEND=software
4242
export QT_OPENGL=software
4343

44+
# Silence audio: xvfb covers X but not sound. Demote every Gst
45+
# Audio/Sink and disable canberra/SDL/pulse/ALSA-default paths.
46+
export ALSA_CONFIG_PATH="$LIB_DIR/asound.conf"
47+
export CANBERRA_DRIVER=null
48+
export GST_PLUGIN_FEATURE_RANK="pulsesink:NONE,alsasink:NONE,osssink:NONE,oss4sink:NONE,jackaudiosink:NONE,pipewiresink:NONE,openalsink:NONE"
49+
export PULSE_SERVER=/dev/null
50+
export SDL_AUDIODRIVER=dummy
51+
4452
# Export the per-invocation values so the inner bash -c receives them
4553
# as proper env vars (avoids embedding paths into the inner script
4654
# via quoting, which breaks on apostrophes / spaces).

0 commit comments

Comments
 (0)