@@ -142,7 +142,7 @@ func TestUploadPropertiesComposition(t *testing.T) {
142142
143143 cwdPath , err := paths .Getwd ()
144144 require .NoError (t , err )
145- cwd := cwdPath .String ()
145+ cwd := strings . ReplaceAll ( cwdPath .String (), " \\ " , "/" )
146146
147147 tests := []test {
148148 // 0: classic upload, requires port
@@ -195,7 +195,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
195195 require .Error (t , err )
196196 } else {
197197 require .NoError (t , err )
198- out := strings .Split (outStream .String (), "\n " )
198+ outFiltered := strings .ReplaceAll (outStream .String (), "\r " , "" )
199+ outFiltered = strings .ReplaceAll (outFiltered , "\\ " , "/" )
200+ out := strings .Split (outFiltered , "\n " )
199201 // With verbose disable, the upload will output at least 2 lines:
200202 // - the output of the command (1 or 2 lines)
201203 // - an empty line
@@ -231,7 +233,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
231233 require .Error (t , err )
232234 } else {
233235 require .NoError (t , err )
234- out := strings .Split (outStream .String (), "\n " )
236+ outFiltered := strings .ReplaceAll (outStream .String (), "\r " , "" )
237+ outFiltered = strings .ReplaceAll (outFiltered , "\\ " , "/" )
238+ out := strings .Split (outFiltered , "\n " )
235239 // With verbose enabled, the upload will output at least 3 lines:
236240 // - the first command line that the cli is going to run
237241 // - the output of the first command
0 commit comments