From f40c2aa64e7cac546c43a270499d9a3b662fdf95 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Sat, 31 Oct 2026 09:30:33 -0400 Subject: [PATCH] Skip the audio mount test on machines without audio On machines with no ALSA devices or PipeWire/PulseAudio sockets, such as GitHub's runners, --audio has nothing to bind, so starting a sandbox with it doesn't change anything. The test's "changing audio requires a restart" check then can't fail, which has kept the coverage workflow failing since audio support was added. --- tests/ai_test_audio.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ai_test_audio.rs b/tests/ai_test_audio.rs index e7174b3..49dd986 100644 --- a/tests/ai_test_audio.rs +++ b/tests/ai_test_audio.rs @@ -134,6 +134,13 @@ fn ai_test_audio_with_no_default_binds( fn ai_test_audio_mounted_in_sandbox(mut sandbox: SandboxManager) -> Result<()> { let paths = host_audio_paths(); + // Without audio devices or sockets, e.g. on CI runners, --audio has + // nothing to bind, so there's nothing to check + if paths.is_empty() { + eprintln!("No audio devices or sockets found, skipping"); + return Ok(()); + } + for path in &paths { assert!(sandbox.xfail(&["--no-config", "test", "-e", path])); }