mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
during incremental compilation, the index can get out of sync
This commit is contained in:
1 parent
44c699aba9
commit
a3489b5bc9
1 file changed
+3
-1
@@ -55,7 +55,9 @@ public class TestExtensionLoader extends AbstractGuiceFinder<TestExtension> {
|
||||
protected boolean isActive(AnnotatedElement e) {
|
||||
TestEnvironment env = TestEnvironment.get();
|
||||
|
||||
String testName = e.getAnnotation(TestExtension.class).value();
|
||||
TestExtension a = e.getAnnotation(TestExtension.class);
|
||||
if (a==null) return false; // stale index
|
||||
String testName = a.value();
|
||||
if (testName.length()>0 && !env.testCase.getName().equals(testName))
|
||||
return false; // doesn't apply to this test
|
||||
|
||||
|
||||
Reference in new issue
Block a user