Skip to content

Commit

Permalink
fixing issue on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <[email protected]>
  • Loading branch information
jjbustamante committed Mar 8, 2023
1 parent 12c370a commit fd9dc9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,11 @@ func testWithoutSpecificBuilderRequirement(

output := pack.RunSuccessfully("report")
version := pack.Version()

layoutRepoDir := filepath.Join(pack.Home(), "layout-repo")
if runtime.GOOS == "windows" {
layoutRepoDir = strings.ReplaceAll(layoutRepoDir, `\`, `\\`)
}

expectedOutput := pack.FixtureManager().TemplateFixture(
"report_output.txt",
Expand All @@ -600,7 +604,11 @@ func testWithoutSpecificBuilderRequirement(

output := pack.RunSuccessfully("report", "--explicit")
version := pack.Version()

layoutRepoDir := filepath.Join(pack.Home(), "layout-repo")
if runtime.GOOS == "windows" {
layoutRepoDir = strings.ReplaceAll(layoutRepoDir, `\`, `\\`)
}

expectedOutput := pack.FixtureManager().TemplateFixture(
"report_output.txt",
Expand Down

0 comments on commit fd9dc9e

Please sign in to comment.