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