Skip to content

Commit debc6c8

Browse files
Fixed windows tests
1 parent 617d1d3 commit debc6c8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

acceptance/selftest/kill_caller/mid_request/test.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Local = true
22
Env.DATABRICKS_CLI_TEST_PID = "1"
33

4+
[[Repls]]
5+
# Normalize Windows line endings (CRLF -> LF)
6+
Old = '\r'
7+
New = ''
8+
49
[[Server]]
510
Pattern = "GET /api/2.0/workspace/list"
611
KillCaller = true
@@ -15,7 +20,9 @@ New = '[PROCESS_KILLED]'
1520
# On Windows, there's no "Killed" message - just empty line before Exit code
1621
# Insert [PROCESS_KILLED] placeholder for consistency
1722
Old = '(\n>>> errcode [^\n]+\n)\nExit code:'
18-
New = '${1}[PROCESS_KILLED]\n\nExit code:'
23+
New = """${1}[PROCESS_KILLED]
24+
25+
Exit code:"""
1926

2027
[[Repls]]
2128
# Normalize exit code: 137 on Unix (128 + SIGKILL), 1 on Windows

acceptance/selftest/kill_caller/test.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Local = true
22
Env.DATABRICKS_CLI_TEST_PID = "1"
33

4+
[[Repls]]
5+
# Normalize Windows line endings (CRLF -> LF)
6+
Old = '\r'
7+
New = ''
8+
49
# Kill the CLI when it calls /Me endpoint
510
[[Server]]
611
Pattern = "GET /api/2.0/preview/scim/v2/Me"
@@ -16,7 +21,9 @@ New = '[PROCESS_KILLED]'
1621
# On Windows, there's no "Killed" message - just empty line before Exit code
1722
# Insert [PROCESS_KILLED] placeholder for consistency
1823
Old = '(\n>>> errcode [^\n]+\n)\nExit code:'
19-
New = '${1}[PROCESS_KILLED]\n\nExit code:'
24+
New = """${1}[PROCESS_KILLED]
25+
26+
Exit code:"""
2027

2128
[[Repls]]
2229
# Normalize exit code: 137 on Unix (128 + SIGKILL), 1 on Windows

0 commit comments

Comments
 (0)