44 "context"
55 "os"
66 "os/exec"
7+ "runtime"
78 "strings"
89 "testing"
910 "time"
@@ -28,6 +29,11 @@ func checkDockerRunning() bool {
2829}
2930
3031func TestDockerRunnerInitialization (t * testing.T ) {
32+ // Skip on Windows - Alpine Linux doesn't support Windows containers
33+ if runtime .GOOS == "windows" {
34+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
35+ }
36+
3137 if ! checkDockerRunning () {
3238 t .Skip ("Docker not installed or not running, skipping test" )
3339 }
@@ -79,6 +85,11 @@ func TestDockerRunnerInitialization(t *testing.T) {
7985}
8086
8187func TestDockerRunnerBasic (t * testing.T ) {
88+ // Skip on Windows - Alpine Linux doesn't support Windows containers
89+ if runtime .GOOS == "windows" {
90+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
91+ }
92+
8293 // Skip if docker is not available or not running
8394 if ! checkDockerRunning () {
8495 t .Skip ("Docker not installed or not running, skipping test" )
@@ -109,6 +120,11 @@ func TestDockerRunnerBasic(t *testing.T) {
109120}
110121
111122func TestDockerRunnerNetworking (t * testing.T ) {
123+ // Skip on Windows - Alpine Linux doesn't support Windows containers
124+ if runtime .GOOS == "windows" {
125+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
126+ }
127+
112128 // Skip if docker is not available or not running
113129 if ! checkDockerRunning () {
114130 t .Skip ("Docker not installed or not running, skipping test" )
@@ -168,6 +184,11 @@ func TestDockerRunnerNetworking(t *testing.T) {
168184}
169185
170186func TestDockerRunnerEnvironmentVariables (t * testing.T ) {
187+ // Skip on Windows - Alpine Linux doesn't support Windows containers
188+ if runtime .GOOS == "windows" {
189+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
190+ }
191+
171192 // Skip if docker is not available or not running
172193 if ! checkDockerRunning () {
173194 t .Skip ("Docker not installed or not running, skipping test" )
@@ -216,6 +237,11 @@ func TestDockerRunnerEnvironmentVariables(t *testing.T) {
216237}
217238
218239func TestDockerRunnerPrepareCommand (t * testing.T ) {
240+ // Skip on Windows - Alpine Linux doesn't support Windows containers
241+ if runtime .GOOS == "windows" {
242+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
243+ }
244+
219245 // Skip if docker is not available or not running
220246 if ! checkDockerRunning () {
221247 t .Skip ("Docker not installed or not running, skipping test" )
@@ -246,6 +272,11 @@ func TestDockerRunnerPrepareCommand(t *testing.T) {
246272}
247273
248274func TestDockerRunner_Optimization_SingleExecutable (t * testing.T ) {
275+ // Skip on Windows - Alpine Linux doesn't support Windows containers
276+ if runtime .GOOS == "windows" {
277+ t .Skip ("Skipping Docker test on Windows - Alpine Linux image not compatible with Windows containers" )
278+ }
279+
249280 if ! checkDockerRunning () {
250281 t .Skip ("Docker not installed or not running, skipping test" )
251282 }
0 commit comments