provisioners/local-exec: tests pass on Windows due to line-endings diff
/cc @armon
This commit is contained in:
parent
10146a79b1
commit
01b58669b0
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue