File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
pkg/internal/testing/integration/internal Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ func DoDefaulting(
87
87
defaults .URL = * listenURL
88
88
}
89
89
90
+ if path == "" {
91
+ if name == "" {
92
+ return DefaultedProcessInput {}, fmt .Errorf ("must have at least one of name or path" )
93
+ }
94
+ defaults .Path = BinPathFinder (name )
95
+ }
96
+
90
97
if dir == "" {
91
98
newDir , err := ioutil .TempDir ("" , "k8s_test_framework_" )
92
99
if err != nil {
@@ -96,13 +103,6 @@ func DoDefaulting(
96
103
defaults .DirNeedsCleaning = true
97
104
}
98
105
99
- if path == "" {
100
- if name == "" {
101
- return DefaultedProcessInput {}, fmt .Errorf ("must have at least one of name or path" )
102
- }
103
- defaults .Path = BinPathFinder (name )
104
- }
105
-
106
106
if startTimeout == 0 {
107
107
defaults .StartTimeout = 20 * time .Second
108
108
}
You can’t perform that action at this time.
0 commit comments