From 7cf6c58ed90d827dd9b85020219eced5d8c8ae78 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 20 Jul 2021 16:56:06 +0100 Subject: Move run-test compilation to soong. Run-test compile many java files (sometimes in very specific ways). Compile them just once in soong, instead of every time we run a test. This makes local host tests 4x faster (21min -> 6min). I expect similar or better improvement on LUCI. It does not affect eng-prod tests now, but the generated output should be reusable to make more run-tests supported in eng-prod. Bug: 147814778 Test: test.py -r --host --target --jvm Change-Id: If689784d2a8d901d132ed0d674a2e2be36f1cd05 --- test/971-iface-super/util-src/generate_java.py | 1 - 1 file changed, 1 deletion(-) (limited to 'test/971-iface-super/util-src/generate_java.py') diff --git a/test/971-iface-super/util-src/generate_java.py b/test/971-iface-super/util-src/generate_java.py index c246e88acb..dafe7f5664 100755 --- a/test/971-iface-super/util-src/generate_java.py +++ b/test/971-iface-super/util-src/generate_java.py @@ -68,7 +68,6 @@ class Compiler: args = args.split() files = list(map(str, files)) cmd = ['sh', '-a', '-e', '--', str(self.javac)] + args + sorted(files) - print("Running compile command: {}".format(cmd)) subprocess.check_call(cmd) print("Compiled {} files".format(len(files))) -- cgit v1.2.3-59-g8ed1b