Skip to content

Commit 79299d6

Browse files
committed
Skip some tests on Windows due to missing dependencies
1 parent 4cb432e commit 79299d6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

internal/pipe/pipeline_test.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"io"
1010
"io/ioutil"
1111
"os"
12+
"runtime"
1213
"strconv"
1314
"strings"
1415
"testing"
@@ -125,6 +126,10 @@ func TestPipelineReadFromSlowly(t *testing.T) {
125126
}
126127

127128
func TestPipelineReadFromSlowly2(t *testing.T) {
129+
if runtime.GOOS == "windows" {
130+
t.Skip("FIXME: test skipped on Windows: 'seq' unavailable")
131+
}
132+
128133
t.Parallel()
129134
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
130135
defer cancel()
@@ -179,6 +184,10 @@ func TestPipelineTwoCommandsPiping(t *testing.T) {
179184
}
180185

181186
func TestPipelineDir(t *testing.T) {
187+
if runtime.GOOS == "windows" {
188+
t.Skip("FIXME: test skipped on Windows: 'pwd' incompatibility")
189+
}
190+
182191
t.Parallel()
183192
ctx := context.Background()
184193

@@ -227,6 +236,10 @@ func TestPipelineStderr(t *testing.T) {
227236
}
228237

229238
func TestPipelineInterrupted(t *testing.T) {
239+
if runtime.GOOS == "windows" {
240+
t.Skip("FIXME: test skipped on Windows: 'sleep' unavailable")
241+
}
242+
230243
t.Parallel()
231244
stdout := &bytes.Buffer{}
232245

@@ -244,6 +257,10 @@ func TestPipelineInterrupted(t *testing.T) {
244257
}
245258

246259
func TestPipelineCanceled(t *testing.T) {
260+
if runtime.GOOS == "windows" {
261+
t.Skip("FIXME: test skipped on Windows: 'sleep' unavailable")
262+
}
263+
247264
t.Parallel()
248265

249266
stdout := &bytes.Buffer{}
@@ -267,6 +284,10 @@ func TestPipelineCanceled(t *testing.T) {
267284
// unread output in this case *does fit* within the OS-level pipe
268285
// buffer.
269286
func TestLittleEPIPE(t *testing.T) {
287+
if runtime.GOOS == "windows" {
288+
t.Skip("FIXME: test skipped on Windows: 'sleep' unavailable")
289+
}
290+
270291
t.Parallel()
271292

272293
p := pipe.New()
@@ -286,6 +307,10 @@ func TestLittleEPIPE(t *testing.T) {
286307
// amount of unread output in this case *does not fit* within the
287308
// OS-level pipe buffer.
288309
func TestBigEPIPE(t *testing.T) {
310+
if runtime.GOOS == "windows" {
311+
t.Skip("FIXME: test skipped on Windows: 'seq' unavailable")
312+
}
313+
289314
t.Parallel()
290315

291316
p := pipe.New()
@@ -305,6 +330,10 @@ func TestBigEPIPE(t *testing.T) {
305330
// amount of unread output in this case *does not fit* within the
306331
// OS-level pipe buffer.
307332
func TestIgnoredSIGPIPE(t *testing.T) {
333+
if runtime.GOOS == "windows" {
334+
t.Skip("FIXME: test skipped on Windows: 'seq' unavailable")
335+
}
336+
308337
t.Parallel()
309338

310339
p := pipe.New()

0 commit comments

Comments
 (0)