Add support for running kotlin tests on kotlin dev version

Bug: 200582899
Change-Id: If9cdcac5751ca275432d7734b669a6b7f3e44902
diff --git a/tools/test.py b/tools/test.py
index c278251..2cab0e1 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -188,7 +188,7 @@
       '--stacktrace',
       help='Pass --stacktrace to the gradle run',
       default=False, action='store_true')
-  result.add_option('--kotlin-dev-compiler',
+  result.add_option('--kotlin-compiler-dev',
                     help='Specify to download a kotlin dev compiler and run '
                          'tests with that',
                     default=False, action='store_true')
@@ -281,6 +281,7 @@
   if options.print_obfuscated_stacktraces:
     gradle_args.append('-Pprint_obfuscated_stacktraces')
   if options.kotlin_dev_compiler:
+    gradle_args.append('-Dcom.android.tools.r8.kotlincompilerdev=1')
     download_kotlin_dev.download_newest()
   if os.name == 'nt':
     # temporary hack