diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-12-21 09:37:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-02-08 14:40:30 -0800 |
commit | 09f32d4f845511638ec162be426eeffb51036b6b (patch) | |
tree | 1f628ef91273e37da8bc5f4d901f1a91ba865fa6 /pkg/gui/gui_test.go | |
parent | 6f0f70bd924b444a5f755046c1da25c0f31e352e (diff) |
add secureexec file for getting around windows checking for a binary first in the current dir
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r-- | pkg/gui/gui_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go index f632f971a..c513b8399 100644 --- a/pkg/gui/gui_test.go +++ b/pkg/gui/gui_test.go @@ -6,7 +6,6 @@ import ( "io" "io/ioutil" "os" - "os/exec" "path/filepath" "strconv" "strings" @@ -14,6 +13,7 @@ import ( "github.com/creack/pty" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" + "github.com/jesseduffield/lazygit/pkg/secureexec" "github.com/stretchr/testify/assert" ) @@ -250,7 +250,7 @@ func Test(t *testing.T) { func createFixture(testPath, actualDir string) error { osCommand := oscommands.NewDummyOSCommand() bashScriptPath := filepath.Join(testPath, "setup.sh") - cmd := exec.Command("bash", bashScriptPath, actualDir) + cmd := secureexec.Command("bash", bashScriptPath, actualDir) if err := osCommand.RunExecutable(cmd); err != nil { return err |