provisioners/local-exec: tests pass on Windows due to line-endings diff

/cc @armon
This commit is contained in:
Mitchell Hashimoto 2014-07-10 13:09:09 -07:00
parent 10146a79b1
commit 01b58669b0
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package localexec
import ( import (
"io/ioutil" "io/ioutil"
"os" "os"
"strings"
"testing" "testing"
"github.com/hashicorp/terraform/config" "github.com/hashicorp/terraform/config"
@ -31,8 +32,10 @@ func TestResourceProvider_Apply(t *testing.T) {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
} }
if string(raw) != "foo\n" { actual := strings.TrimSpace(string(raw))
t.Fatalf("bad: %s", raw) expected := "foo"
if actual != expected {
t.Fatalf("bad: %#v", actual)
} }
} }