提交 a3489b5b 编写于 作者: K Kohsuke Kawaguchi

during incremental compilation, the index can get out of sync

上级 44c699ab
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册