File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,23 +27,24 @@ func setup(t *testing.T) {
2727func TestBash (t * testing.T ) {
2828 setup (t )
2929
30- os .Setenv ("SHELL" , `C:\Program Files\bash.exe` )
30+ shellPath := `C:\Program Files\Git\usr\bin\bash.exe`
31+ os .Setenv ("SHELL" , shellPath )
3132 cfg , err := config .New ()
3233 require .NoError (t , err )
3334 subs := New (cfg )
34- assert .Equal (t , `C:\Program Files\bash.exe` , subs .Binary ())
35+ assert .Equal (t , shellPath , subs .Binary ())
3536
3637}
3738
3839func TestBashDontEscapeSpace (t * testing.T ) {
3940 setup (t )
4041
4142 // Reproduce bug in which paths are being incorrectly escaped on windows
42- os .Setenv ("SHELL" , `C:\Program\ Files\bash.exe` )
43+ os .Setenv ("SHELL" , `C:\Program\ Files\Git\usr\bin\ bash.exe` )
4344 cfg , err := config .New ()
4445 require .NoError (t , err )
4546 subs := New (cfg )
46- assert .Equal (t , `C:\Program Files\bash.exe` , subs .Binary ())
47+ assert .Equal (t , `C:\Program Files\Git\usr\bin\ bash.exe` , subs .Binary ())
4748}
4849
4950func TestRunCommandError (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments