We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da3de9 commit 0f5a186Copy full SHA for 0f5a186
test/e2e/memcached_test.go
@@ -153,11 +153,14 @@ func TestMemcached(t *testing.T) {
153
// t.Fatalf("Could not write deploy/operator.yaml: %v", err)
154
// }
155
156
- cmdOut, err = exec.Command("operator-sdk",
+ cmd := exec.Command("operator-sdk",
157
"add",
158
"api",
159
"--api-version=cache.example.com/v1alpha1",
160
- "--kind=Memcached").CombinedOutput()
+ "--kind=Memcached")
161
+ // Generators will print errors if -v is set.
162
+ cmd.Env = append(os.Environ(), projutil.GoFlagsEnv+`="-v"`)
163
+ cmdOut, err = cmd.CombinedOutput()
164
if err != nil {
165
t.Fatalf("Error: %v\nCommand Output: %s\n", err, string(cmdOut))
166
}
0 commit comments