Reland "Set supported CF version to V15"

This reverts commit fc34eccb08694e5479755b819451d95e4228d29c.

Bug: 141587937
Change-Id: I65a35087c7c50410bcd5d0b17fcf2242c4da826c
diff --git a/tools/test.py b/tools/test.py
index 0c70124..cf14685 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -156,6 +156,11 @@
       '--print-obfuscated-stacktraces', '--print_obfuscated_stacktraces',
       default=False, action='store_true',
       help='Print the obfuscated stacktraces')
+  result.add_option(
+      '--debug-agent', '--debug_agent',
+      help='Enable Java debug agent and suspend compilation (default disabled)',
+      default=False,
+      action='store_true')
   return result.parse_args()
 
 def archive_failures():
@@ -253,6 +258,8 @@
   if options.worktree:
     gradle_args.append('-g=' + os.path.join(utils.REPO_ROOT, ".gradle_user_home"))
     gradle_args.append('--no-daemon')
+  if options.debug_agent:
+    gradle_args.append('--no-daemon')
 
   # Build an R8 with dependencies for bootstrapping tests before adding test sources.
   gradle_args.append('r8WithDeps')
@@ -263,6 +270,8 @@
   # Add Gradle tasks
   gradle_args.append('cleanTest')
   gradle_args.append('test')
+  if options.debug_agent:
+    gradle_args.append('--debug-jvm')
   if options.fail_fast:
     gradle_args.append('--fail-fast')
   if options.failed: