We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6d2ff commit 11d9cc3Copy full SHA for 11d9cc3
cmd/clusterctl/cmd/plugin_test.go
@@ -35,7 +35,12 @@ const (
35
)
36
37
func Test_plugin(t *testing.T) {
38
- if os.Getenv(forkEnvVar) == "" {
+ // If CLUSTERCTL_PLUGIN_TEST_FORK is set then just execute the command.
39
+ if os.Getenv(forkEnvVar) != "" {
40
+ os.Args = append(baseArgs, os.Getenv(pluginCommandEnvVar))
41
+ Execute()
42
+ return
43
+ }
44
g := NewWithT(t)
45
tmpDir := os.TempDir()
46
defer os.Remove(tmpDir)
0 commit comments