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) {
27
27
func TestBash (t * testing.T ) {
28
28
setup (t )
29
29
30
- os .Setenv ("SHELL" , `C:\Program Files\bash.exe` )
30
+ shellPath := `C:\Program Files\Git\usr\bin\bash.exe`
31
+ os .Setenv ("SHELL" , shellPath )
31
32
cfg , err := config .New ()
32
33
require .NoError (t , err )
33
34
subs := New (cfg )
34
- assert .Equal (t , `C:\Program Files\bash.exe` , subs .Binary ())
35
+ assert .Equal (t , shellPath , subs .Binary ())
35
36
36
37
}
37
38
38
39
func TestBashDontEscapeSpace (t * testing.T ) {
39
40
setup (t )
40
41
41
42
// 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` )
43
44
cfg , err := config .New ()
44
45
require .NoError (t , err )
45
46
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 ())
47
48
}
48
49
49
50
func TestRunCommandError (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments