Don't use gradle daemon on the bots
Bug: 124643718
Change-Id: If131bddcdb44d31648d477d1db4f717ae77b8132
diff --git a/tools/test.py b/tools/test.py
index 06aefca..899337a 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -141,9 +141,13 @@
def Main():
(options, args) = ParseOptions()
if utils.is_bot():
- gradle.RunGradle(['clean'])
+ gradle.RunGradle(['--no-daemon', 'clean'])
gradle_args = ['--stacktrace']
+ if utils.is_bot():
+ # Bots don't like dangling processes
+ gradle_args.append('--no-daemon')
+
# Set all necessary Gradle properties and options first.
if options.shard_count:
assert options.shard_number