summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2014-04-29 10:48:11 -0700
committerSiva Velusamy <vsiva@google.com>2014-04-29 10:48:11 -0700
commita1ec5899676474427ccc16833427d9cd9e73e13c (patch)
treef790c5a8fc0b2c59de79f5020102e5288ac28039
parentc68b15bcbab9cb0427a6d548b1fd5b3b984e4051 (diff)
downloadidea-a1ec5899676474427ccc16833427d9cd9e73e13c.tar.gz
Don't enable debugging on JVM running tests
While running tests on the build server, we often see the failure message about unable to bind to a port since it is already in use. This CL is an attempt to see if not passing the -Xdebug and -Xjdwp options to the VM that is launched for running tests will help avoid the issue. Change-Id: I36d199fff9571c4367ee9b6bb92b2e763df4c775
-rw-r--r--build/scripts/common_tests.gant7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/scripts/common_tests.gant b/build/scripts/common_tests.gant
index dff29cd53338..6528d3c8c3cb 100644
--- a/build/scripts/common_tests.gant
+++ b/build/scripts/common_tests.gant
@@ -61,7 +61,12 @@ target('run_tests': 'Run java tests') {
};
}
- commonJvmArgs().each { jvmarg(value: it) }
+ commonJvmArgs().each {
+ if (!it.startsWith("-Xdebug") && !it.startsWith("-Xrunjdwp")) { // don't run tests with debug enabled
+ jvmarg(value: it)
+ }
+ }
+
if (isDefined("jvm_args")) {
jvm_args.each { jvmarg(value: it) }