Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzzzzzzz committed Dec 13, 2023
1 parent 172d027 commit 99068b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/skaffold/hooks/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func TestRenderHooks(t *testing.T) {
})

if test.requiresWindowsOS {
preOutFile.Close()
test.hooks.PreHooks[0].HostHook.Command[2] = test.hooks.PreHooks[0].HostHook.Command[2] + " | Set-Content -Path " + preOutFile.Name()
} else {
test.hooks.PreHooks[0].HostHook.Command[2] = test.hooks.PreHooks[0].HostHook.Command[2] + " > " + preOutFile.Name()
Expand All @@ -162,6 +163,7 @@ func TestRenderHooks(t *testing.T) {
os.Remove(postOutFile.Name())
})
if test.requiresWindowsOS {
postOutFile.Close()
test.hooks.PostHooks[0].HostHook.Command[2] = test.hooks.PostHooks[0].HostHook.Command[2] + " | Set-Content -Path " + postOutFile.Name()
} else {
test.hooks.PostHooks[0].HostHook.Command[2] = test.hooks.PostHooks[0].HostHook.Command[2] + " > " + postOutFile.Name()
Expand Down

0 comments on commit 99068b9

Please sign in to comment.