geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zho...@apache.org
Subject incubator-geode git commit: GEODE-1052
Date Tue, 08 Mar 2016 19:39:22 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 79e2a4311 -> c9f1e04eb


GEODE-1052

specify logLevel in command line of gradle for running dunit test


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/c9f1e04e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/c9f1e04e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/c9f1e04e

Branch: refs/heads/develop
Commit: c9f1e04eb4ee042368682da548da1f7872fe48bc
Parents: 79e2a43
Author: zhouxh <gzhou@pivotal.io>
Authored: Fri Mar 4 17:47:11 2016 -0800
Committer: zhouxh <gzhou@pivotal.io>
Committed: Tue Mar 8 11:37:11 2016 -0800

----------------------------------------------------------------------
 .../com/gemstone/gemfire/test/dunit/DistributedTestCase.java  | 7 ++++++-
 gradle/test.gradle                                            | 4 ++++
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/c9f1e04e/geode-core/src/test/java/com/gemstone/gemfire/test/dunit/DistributedTestCase.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/test/dunit/DistributedTestCase.java
b/geode-core/src/test/java/com/gemstone/gemfire/test/dunit/DistributedTestCase.java
index 65224e8..1203570 100755
--- a/geode-core/src/test/java/com/gemstone/gemfire/test/dunit/DistributedTestCase.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/test/dunit/DistributedTestCase.java
@@ -241,7 +241,12 @@ public abstract class DistributedTestCase extends TestCase implements
java.io.Se
    * @since 3.0
    */
   public Properties getDistributedSystemProperties() {
-    return new Properties();
+    String logLevel = System.getProperty("logLevel");
+    Properties props = new Properties();
+    if (logLevel != null) {
+      props.setProperty("log-level", logLevel);
+    }
+    return props;
   }
 
   public static void disconnectAllFromDS() {

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/c9f1e04e/gradle/test.gradle
----------------------------------------------------------------------
diff --git a/gradle/test.gradle b/gradle/test.gradle
index d8af4ba..6153212 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -204,6 +204,10 @@ subprojects {
         systemProperty 'gemfire.DEFAULT_MAX_OPLOG_SIZE', '10'
         systemProperty 'gemfire.disallowMcastDefaults', 'true'
         systemProperty 'jline.terminal', 'jline.UnsupportedTerminal'
+        def logLevel = System.getProperty('logLevel')
+        if (logLevel != null) {
+          systemProperty 'logLevel', logLevel
+        }
 
         def eol = System.getProperty('line.separator')
         def progress = new File(resultsDir, "$test.name-progress.txt")


Mime
View raw message