diff --git a/e2e/internal/az/confcom.go b/e2e/internal/az/confcom.go index 62a1a0ab8..3fa660042 100644 --- a/e2e/internal/az/confcom.go +++ b/e2e/internal/az/confcom.go @@ -6,6 +6,7 @@ package az import ( + "os" "os/exec" "strings" ) @@ -21,5 +22,7 @@ func KataPolicyGenVersion() (string, error) { // KataPolicyGen executes `az confcom katapolicygen --yaml `. func KataPolicyGen(resourcePath string) error { - return exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath).Run() + cmd := exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath) + cmd.Stderr = os.Stderr + return cmd.Run() }