提交 5b03fb00 编写于 作者: K Kohsuke Kawaguchi

Don't let the debug option in Maven to block Mavens forked from tests

上级 e9568c5a
......@@ -1851,6 +1851,15 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
// DNS multicast support takes up a lot of time during tests, so just disable it altogether
// this also prevents tests from falsely advertising Hudson
DNSMultiCast.disabled = true;
if (!Functions.isWindows()) {
try {
GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS");
GNUCLibrary.LIBC.unsetenv("MAVEN_DEBUG_OPTS");
} catch (Exception e) {
LOGGER.log(Level.WARNING,"Failed to cancel out MAVEN_OPTS",e);
}
}
}
public static class TestBuildWrapper extends BuildWrapper {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册