Move setting of print_times earlier to enable for specific runtimes
Before we would only set this when we did not specify the runtime on the commandline
Bug: b/330628922
Change-Id: Ied1e31d2f41506c52b6737733fd5411706ad85f9
diff --git a/tools/test.py b/tools/test.py
index 4ffed63..9805e8e 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -516,6 +516,9 @@
))
rotate_test_reports()
+ if options.print_times:
+ gradle_args.append('-Pprint_times=true')
+
# Now run tests on selected runtime(s).
if options.runtimes:
if options.dex_vm != 'default':
@@ -548,8 +551,6 @@
# Legacy testing populates the runtimes based on dex_vm.
vms_to_test = [options.dex_vm] if options.dex_vm != "all" else ALL_ART_VMS
- if options.print_times:
- gradle_args.append('-Pprint_times=true')
for art_vm in vms_to_test:
vm_suffix = "_" + options.dex_vm_kind if art_vm != "default" else ""
runtimes = ['dex-' + art_vm]