diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:35:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:38:39 +0900 |
| commit | 2e806601693e0262641386ce5430d7e8d84b2a77 (patch) | |
| tree | bf8cf3cfbe0d3e8e01524a32ef5ab96ac66de5b5 /internal/outcome/run_test.go | |
| parent | d0a3c6a2f3ac4da3921fa525cf1ee5ea7d68eb1c (diff) | |
internal/outcome: look up pipewire-pulse path
This is for setting up the pipewire-pulse container in shim, for #29.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/run_test.go')
| -rw-r--r-- | internal/outcome/run_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
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": |
