@@ -272,9 +272,9 @@ func handle() error {
272
272
273
273
// Run the tests using the testDir kubernetes
274
274
if len (* storageClassFile ) != 0 {
275
- err = runCSITests (pkgDir , k8sDir , * testFocus , * storageClassFile )
275
+ err = runCSITests (pkgDir , testDir , * testFocus , * storageClassFile )
276
276
} else if * migrationTest {
277
- err = runMigrationTests (pkgDir , k8sDir , * testFocus )
277
+ err = runMigrationTests (pkgDir , testDir , * testFocus )
278
278
} else {
279
279
return fmt .Errorf ("did not run either CSI or Migration test" )
280
280
}
@@ -299,21 +299,21 @@ func setEnvProject(project string) error {
299
299
return nil
300
300
}
301
301
302
- func runMigrationTests (pkgDir , k8sDir , testFocus string ) error {
303
- return runTestsWithConfig (k8sDir , testFocus , "--storage.migratedPlugins=kubernetes.io/gce-pd" )
302
+ func runMigrationTests (pkgDir , testDir , testFocus string ) error {
303
+ return runTestsWithConfig (testDir , testFocus , "--storage.migratedPlugins=kubernetes.io/gce-pd" )
304
304
}
305
305
306
- func runCSITests (pkgDir , k8sDir , testFocus , storageClassFile string ) error {
306
+ func runCSITests (pkgDir , testDir , testFocus , storageClassFile string ) error {
307
307
testDriverConfigFile , err := generateDriverConfigFile (pkgDir , storageClassFile )
308
308
if err != nil {
309
309
return err
310
310
}
311
311
testConfigArg := fmt .Sprintf ("--storage.testdriver=%s" , testDriverConfigFile )
312
- return runTestsWithConfig (k8sDir , testFocus , testConfigArg )
312
+ return runTestsWithConfig (testDir , testFocus , testConfigArg )
313
313
}
314
314
315
- func runTestsWithConfig (k8sDir , testFocus , testConfigArg string ) error {
316
- err := os .Chdir (k8sDir )
315
+ func runTestsWithConfig (testDir , testFocus , testConfigArg string ) error {
316
+ err := os .Chdir (testDir )
317
317
if err != nil {
318
318
return err
319
319
}
0 commit comments