in internal/testers/ginkgov1/ginkgo.go [256:276]
func (t *Tester) initKubetest2Info() error {
if t.UseBuiltBinaries && t.UseBinariesFromPath {
return fmt.Errorf("--use-built-binaries and --use-binaries-from-path are mutually exclusive")
}
if dir, ok := os.LookupEnv("KUBETEST2_RUN_DIR"); ok {
t.runDir = dir
return nil
}
// ginkgo/e2e.test/kubectl can be found in rundir when they are built
if t.UseBuiltBinaries {
t.runDir = artifacts.RunDir()
return nil
}
// default to current working directory if for some reason the env is not set
dir, err := os.Getwd()
if err != nil {
return fmt.Errorf("failed to set run dir: %v", err)
}
t.runDir = dir
return nil
}