@@ -449,9 +449,9 @@ func testAccept(t *testing.T, inprocessMode bool, singleTest string) int {
449449 subset := newSubsetSelector (t , testdiff .OverwriteMode , Forcerun )
450450
451451 switch skipLocalMode {
452- case "" , SkipLocalAll , SkipLocalWithChanged :
452+ case "" , SkipLocalWithChanged :
453453 default :
454- t .Fatalf ("Unsupported %s=%q, expected %q or %q " , SkipLocalEnvVar , skipLocalMode , SkipLocalAll , SkipLocalWithChanged )
454+ t .Fatalf ("Unsupported %s=%q, expected %q" , SkipLocalEnvVar , skipLocalMode , SkipLocalWithChanged )
455455 }
456456 skipLocalWithChanged := skipLocalMode == SkipLocalWithChanged
457457
@@ -657,10 +657,7 @@ func validateTestPhase(phase int) error {
657657// skipLocalMode is the value of DATABRICKS_TEST_SKIPLOCAL read once at startup.
658658// changedTests maps test dirs to extra env filters; nil map means feature is off.
659659func getSkipReason (config * internal.TestConfig , configPath , dir , skipLocalMode string , changedTests map [string ][]string ) string {
660- switch skipLocalMode {
661- case SkipLocalAll :
662- return "Disabled via DATABRICKS_TEST_SKIPLOCAL=" + SkipLocalAll + " in " + configPath
663- case SkipLocalWithChanged :
660+ if skipLocalMode == SkipLocalWithChanged {
664661 if _ , ok := changedTests [dir ]; ! ok {
665662 return "Disabled via DATABRICKS_TEST_SKIPLOCAL=" + SkipLocalWithChanged + " in " + configPath
666663 }
0 commit comments