Skip to content

Commit

Permalink
internal/integration: set homedir to workdir for script tests (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
noamcattan authored Aug 2, 2023
1 parent 1e76d0a commit 3cd877f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/integration/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ func cmdCLI(ts *testscript.TestScript, neg bool, args []string, dbURL, cliPath s
stderr := &bytes.Buffer{}
cmd.Stderr = stderr
cmd.Dir = workDir
cmd.Env = append(cmd.Env, "HOME="+workDir)
if err := cmd.Run(); err != nil && !neg {
ts.Fatalf("\n[stderr]\n%s", stderr)
}
Expand Down

0 comments on commit 3cd877f

Please sign in to comment.