From 0d7e3c52aef05d6bd12066c0ed5c02afc786b348 Mon Sep 17 00:00:00 2001 From: Adam Babik Date: Fri, 8 Nov 2024 20:25:34 +0100 Subject: [PATCH] F --- internal/command/command_terminal_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/command/command_terminal_test.go b/internal/command/command_terminal_test.go index 7821e6474..c50535c2d 100644 --- a/internal/command/command_terminal_test.go +++ b/internal/command/command_terminal_test.go @@ -19,6 +19,7 @@ import ( "github.com/stateful/runme/v3/internal/sbuffer" "github.com/stateful/runme/v3/internal/session" + "github.com/stateful/runme/v3/internal/testutils" runnerv2 "github.com/stateful/runme/v3/pkg/api/gen/proto/go/runme/runner/v2" ) @@ -63,7 +64,7 @@ func TestTerminalCommand_EnvPropagation(t *testing.T) { // Wait for the prompt before sending the next command. prompt := "$" - if os.Getenv("RUNME_TEST_ENV") == "docker" { + if testutils.IsDockerTestEnv() { prompt = "#" } expectContainLines(ctx, t, stdout, []string{prompt})