@@ -142,7 +142,7 @@ func TestUploadPropertiesComposition(t *testing.T) {
142
142
143
143
cwdPath , err := paths .Getwd ()
144
144
require .NoError (t , err )
145
- cwd := cwdPath .String ()
145
+ cwd := strings . ReplaceAll ( cwdPath .String (), " \\ " , "/" )
146
146
147
147
tests := []test {
148
148
// 0: classic upload, requires port
@@ -195,7 +195,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
195
195
require .Error (t , err )
196
196
} else {
197
197
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 " )
199
201
// With verbose disable, the upload will output at least 2 lines:
200
202
// - the output of the command (1 or 2 lines)
201
203
// - an empty line
@@ -231,7 +233,9 @@ func TestUploadPropertiesComposition(t *testing.T) {
231
233
require .Error (t , err )
232
234
} else {
233
235
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 " )
235
239
// With verbose enabled, the upload will output at least 3 lines:
236
240
// - the first command line that the cli is going to run
237
241
// - the output of the first command
0 commit comments