mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
Normalize in the fmt -check test
This commit is contained in:
parent
4b6a11701b
commit
82dcd5276e
1 changed files with 4 additions and 0 deletions
|
|
@ -245,6 +245,10 @@ func TestFmt_check(t *testing.T) {
|
|||
t.Fatalf("wrong exit code. expected 3")
|
||||
}
|
||||
|
||||
// Given that we give relative paths back to the user, normalize this temp
|
||||
// dir so that we're comparing against a relative-ized (normalized) path
|
||||
tempDir = c.normalizePath(tempDir)
|
||||
|
||||
if actual := ui.OutputWriter.String(); !strings.Contains(actual, tempDir) {
|
||||
t.Fatalf("expected:\n%s\n\nto include: %q", actual, tempDir)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue