@@ -31,6 +31,8 @@ func TestExtractAndInitializeDevcontainerScripts(t *testing.T) {
31
31
args args
32
32
wantFilteredScripts []codersdk.WorkspaceAgentScript
33
33
wantDevcontainerScripts []codersdk.WorkspaceAgentScript
34
+
35
+ skipOnWindowsDueToPathSeparator bool
34
36
}{
35
37
{
36
38
name : "no scripts" ,
@@ -143,6 +145,7 @@ func TestExtractAndInitializeDevcontainerScripts(t *testing.T) {
143
145
RunOnStart : false ,
144
146
},
145
147
},
148
+ skipOnWindowsDueToPathSeparator : true ,
146
149
},
147
150
{
148
151
name : "scripts match devcontainers with expand path" ,
@@ -180,6 +183,7 @@ func TestExtractAndInitializeDevcontainerScripts(t *testing.T) {
180
183
RunOnStart : false ,
181
184
},
182
185
},
186
+ skipOnWindowsDueToPathSeparator : true ,
183
187
},
184
188
{
185
189
name : "expand config path when ~" ,
@@ -221,11 +225,16 @@ func TestExtractAndInitializeDevcontainerScripts(t *testing.T) {
221
225
RunOnStart : false ,
222
226
},
223
227
},
228
+ skipOnWindowsDueToPathSeparator : true ,
224
229
},
225
230
}
226
231
for _ , tt := range tests {
227
232
t .Run (tt .name , func (t * testing.T ) {
228
233
t .Parallel ()
234
+ if tt .skipOnWindowsDueToPathSeparator && filepath .Separator == '\\' {
235
+ t .Skip ("Skipping test on Windows due to path separator difference." )
236
+ }
237
+
229
238
logger := slogtest .Make (t , nil )
230
239
if tt .args .expandPath == nil {
231
240
tt .args .expandPath = func (s string ) (string , error ) {
0 commit comments