From 2e806601693e0262641386ce5430d7e8d84b2a77 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 15 Dec 2025 12:35:43 +0900 Subject: internal/outcome: look up pipewire-pulse path This is for setting up the pipewire-pulse container in shim, for #29. Signed-off-by: Ophestra --- internal/outcome/run_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/outcome/run_test.go') diff --git a/internal/outcome/run_test.go b/internal/outcome/run_test.go index 01d487a8..db18e02c 100644 --- a/internal/outcome/run_test.go +++ b/internal/outcome/run_test.go @@ -883,6 +883,16 @@ func (k *stubNixOS) lookupGroupId(name string) (string, error) { } } +func (k *stubNixOS) lookPath(file string) (string, error) { + switch file { + case "pipewire-pulse": + return "/run/current-system/sw/bin/pipewire-pulse", nil + + default: + panic(fmt.Sprintf("unexpected file %q", file)) + } +} + func (k *stubNixOS) cmdOutput(cmd *exec.Cmd) ([]byte, error) { switch cmd.Path { case "/proc/nonexistent/hsu": -- cgit v1.3.1