mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
addded a variable to test if Hudson is being unit tested or not.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11965 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
fcfa6f02e6
commit
3edd36e40d
2 files changed
+15
-1
No files matched your search
@@ -381,6 +381,9 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
|
||||
// suppress INFO output from Spring, which is verbose
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user