Skip to content

Commit a5f4798

Browse files
committed
address pr comment: use loc.TempDir
1 parent 728c752 commit a5f4798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/testrunner/script/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func Run(dst io.Writer, cmd *cobra.Command, args []string) error {
4949
if err != nil {
5050
return err
5151
}
52-
workRoot := filepath.Join(home, filepath.FromSlash(".elastic-package/tmp/script_tests"))
52+
workRoot := filepath.Join(home, loc.TempDir(), "script_tests")
5353
err = os.MkdirAll(workRoot, 0o700)
5454
if err != nil {
5555
return fmt.Errorf("could not make work space root: %w", err)

0 commit comments

Comments
 (0)