[FIXED HUDSON-2694] Detection of the test mode now is done by Java code

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13546 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-12-13 01:31:23 +00:00
1 parent 2082197bb6
commit 41426c32d7
4 files changed
+11 -10

No files matched your search

@@ -27,6 +27,7 @@ import hudson.util.StreamTaskListener;
import hudson.util.ProcessTreeKiller;
import hudson.maven.MavenModuleSet;
import hudson.FilePath;
import hudson.Functions;
import junit.framework.TestCase;
import org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting;
import org.jvnet.hudson.test.recipes.Recipe;
@@ -529,7 +530,7 @@ public abstract class HudsonTestCase extends TestCase {
Logger.getLogger("org.springframework").setLevel(Level.WARNING);
// hudson-behavior.js relies on this to decide whether it's running unit tests.
System.setProperty("hudson.unitTest","true");
Functions.isUnitTest = true;
}
private static final Logger LOGGER = Logger.getLogger(HudsonTestCase.class.getName());