@@ -386,9 +386,13 @@ class CoderCLIManagerTest extends Specification {
386
386
387
387
where :
388
388
str | expected
389
- $/ C:\" quote after slash"/ $ | $/ "C:\\\" quote after slash\" "/ $
390
- $/ C:\e cho "hello world"/ $ | $/ "C:\\ echo \" hello world\" "/ $
391
- $/ "C:\P rogram Files\H eaderCommand.exe" --flag/ $ | $/ "\" C:\\ Program Files\\ HeaderCommand.exe\" --flag"/ $
389
+ $// tmp/coder/$ | $//tmp/coder/$
390
+ $// tmp/c o d e r/$ | $/"/tmp/c o d e r"/$
391
+ $/ C:\n o\s paces.exe/ $ | $/ C:\n o\s paces.exe/ $
392
+ $/ C:\" quote after slash"/ $ | $/ "C:\\ "quote after slash\" "/ $
393
+ $/ C:\e cho "hello world"/ $ | $/ "C:\e cho \" hello world\" "/ $
394
+ $/ C:\" no"\" spaces"/ $ | $/ C:\\ "no\"\\ "spaces\" / $
395
+ $/ "C:\P rogram Files\H eaderCommand.exe" --flag/ $ | $/ "\" C:\P rogram Files\H eaderCommand.exe\" --flag"/ $
392
396
}
393
397
394
398
def " configures an SSH file" () {
@@ -405,8 +409,8 @@ class CoderCLIManagerTest extends Specification {
405
409
406
410
def expectedConf = Path . of(" src/test/fixtures/outputs/" ). resolve(output + " .conf" ). toFile(). text
407
411
.replaceAll(" \\ r?\\ n" , System . lineSeparator())
408
- .replace(" \" /tmp/coder-gateway/test.coder.invalid/config\" " , CoderCLIManager . escape(coderConfigPath. toString()))
409
- .replace(" \" /tmp/coder-gateway/test.coder.invalid/coder-linux-amd64\" " , CoderCLIManager . escape(ccm. localBinaryPath. toString()))
412
+ .replace(" /tmp/coder-gateway/test.coder.invalid/config" , CoderCLIManager . escape(coderConfigPath. toString()))
413
+ .replace(" /tmp/coder-gateway/test.coder.invalid/coder-linux-amd64" , CoderCLIManager . escape(ccm. localBinaryPath. toString()))
410
414
411
415
when :
412
416
ccm. configSsh(workspaces. collect { DataGen . workspace(it) }, headerCommand)
0 commit comments