Skip to content

Commit 9c33edc

Browse files
use absolute binary path in azure pty test
1 parent 67276a1 commit 9c33edc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/integration/setup_azure_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ func TestSetupAzureAndAzCommandSucceed(t *testing.T) {
125125
)
126126
require.NoError(t, err, "lstk start failed: %s", stderr)
127127

128-
cmd := exec.CommandContext(ctx, binaryPath(), "setup", "azure")
128+
binPath, err := filepath.Abs(binaryPath())
129+
require.NoError(t, err)
130+
cmd := exec.CommandContext(ctx, binPath, "setup", "azure")
129131
cmd.Dir = workDir
130132
cmd.Env = baseEnv.With(env.APIEndpoint, mockServer.URL)
131133
ptmx, err := pty.Start(cmd)

0 commit comments

Comments
 (0)