aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/run_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/outcome/run_test.go')
-rw-r--r--internal/outcome/run_test.go10
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":