Add support for downloading kotlin dev compilers
Contents of README.google:
Name: Kotlin
URL: https://github.com/JetBrains/kotlin/
Version: 1.5.0
Revision: NA
License: Apache License Version 2.0
Bug: 200582899
Change-Id: I9285f3026c171ce4954166a19fb7de83cf6e2341
diff --git a/tools/test.py b/tools/test.py
index 6553358..c278251 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -8,6 +8,7 @@
# force the tests to run, even if no input changed.
import archive_desugar_jdk_libs
+import download_kotlin_dev
import notify
import optparse
import os
@@ -187,6 +188,10 @@
'--stacktrace',
help='Pass --stacktrace to the gradle run',
default=False, action='store_true')
+ result.add_option('--kotlin-dev-compiler',
+ help='Specify to download a kotlin dev compiler and run '
+ 'tests with that',
+ default=False, action='store_true')
return result.parse_args()
def archive_failures():
@@ -275,6 +280,8 @@
gradle_args.append('-Pprint_full_stacktraces')
if options.print_obfuscated_stacktraces:
gradle_args.append('-Pprint_obfuscated_stacktraces')
+ if options.kotlin_dev_compiler:
+ download_kotlin_dev.download_newest()
if os.name == 'nt':
# temporary hack
gradle_args.append('-Pno_internal')