Skip to content

Commit

Permalink
Tests that run posix commands fail in windows. Suppress them for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntwrick committed Feb 12, 2019
1 parent 1727800 commit 73041ca
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions evaluator/evaluator_test.go
Expand Up @@ -3,6 +3,7 @@ package evaluator
import (
"flag"
"fmt"
"runtime"
"strings"
"testing"

Expand Down Expand Up @@ -508,7 +509,10 @@ b, c = [1, 2]; b`, 1},
a.int()
`, 10},
}

if runtime.GOOS == "windows" {
// these tests are posix only for now
return
}
for _, tt := range tests {
evaluated := testEval(tt.input)
switch expected := tt.expected.(type) {
Expand Down Expand Up @@ -1022,7 +1026,10 @@ func TestBuiltinProperties(t *testing.T) {
{`{1: 1}.1`, "unusable as hash key: NUMBER"},
{`[].a`, "invalid property 'a' on type ARRAY"},
}

if runtime.GOOS == "windows" {
// these tests are posix only for now
return
}
for _, tt := range tests {
evaluated := testEval(tt.input)

Expand Down Expand Up @@ -1101,7 +1108,10 @@ func TestCommand(t *testing.T) {
{"`echo hello world | xargs echo -n`", "hello world"},
{"`echo \\$CONTEXT`", "abs"},
}

if runtime.GOOS == "windows" {
// these tests are posix only for now
return
}
for _, tt := range tests {
evaluated := testEval(tt.input)

Expand Down

0 comments on commit 73041ca

Please sign in to comment.