From 69cc64ef56c4b46954514d7ef1b93b3861443255 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Mon, 4 Nov 2024 22:55:46 +0900 Subject: linux: provide access to stdout Signed-off-by: Ophestra Umiker --- internal/app/app_nixos_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/app') diff --git a/internal/app/app_nixos_test.go b/internal/app/app_nixos_test.go index c5a31a65..057ced98 100644 --- a/internal/app/app_nixos_test.go +++ b/internal/app/app_nixos_test.go @@ -2,6 +2,7 @@ package app_test import ( "fmt" + "io" "io/fs" "os/user" "strconv" @@ -579,6 +580,10 @@ func (s *stubNixOS) Exit(code int) { panic("called exit on stub with code " + strconv.Itoa(code)) } +func (s *stubNixOS) Stdout() io.Writer { + panic("requested stdout") +} + func (s *stubNixOS) FshimPath() string { return "/nix/store/00000000000000000000000000000000-fortify-0.0.10/bin/.fshim" } -- cgit v1.3.1