Revert "Revert "Allow execution time of the slowest tests to be printed""
This reverts commit 01c15c6af9f04011680889767c0de78f9dd4e7ab.
Fixed stray removal of dependency
Change-Id: Ic82f7456fafdcab401046e3f963f7b5d996d667a
diff --git a/tools/test.py b/tools/test.py
index 6734106..6f3fe83 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -167,6 +167,9 @@
help='Use alternative desugared library configuration.')
result.add_option('--desugared-library', '--desugared_library',
help='Build and use desugared library from GitHub.')
+ result.add_option('--print-times', '--print_times',
+ help='Print the execution time of the slowest tests..',
+ default=False, action='store_true')
return result.parse_args()
def archive_failures():
@@ -383,6 +386,8 @@
# 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]