don't active unless it's run from tests

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-31 08:49:48 -07:00
1 parent d0db609a76
commit cc3393a74e
1 file changed
+2
@@ -52,6 +52,8 @@ public class TestExtensionLoader extends ExtensionFinder {
List<ExtensionComponent<T>> result = new ArrayList<ExtensionComponent<T>>();
if (env==null) return result; // not in a test
ClassLoader cl = hudson.getPluginManager().uberClassLoader;
for (IndexItem<TestExtension,Object> item : Index.load(TestExtension.class, Object.class, cl)) {
try {