summaryrefslogtreecommitdiff
path: root/test/854-image-inlining/run.py
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2024-05-09 15:13:50 +0100
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-05-10 13:36:02 +0000
commit14be0bbe4b8ed0af6dfbccc84de0af94fed4cd9d (patch)
treeabd85d66f9cdfa32db18d682092e1c50bb1ac787 /test/854-image-inlining/run.py
parentef219ce92b4491ead921092a7f4992b8b0fecd6f (diff)
Regression test for b/336842546.
We used to incorrectly assume a class in the profile would mean it would be in the app image. This got fixed with aosp/3064144. Test: 854-image-inlining Bug: 336842546 Change-Id: I0159b5594922b54f51943497fa25d782e6026bc4
Diffstat (limited to 'test/854-image-inlining/run.py')
-rw-r--r--test/854-image-inlining/run.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/854-image-inlining/run.py b/test/854-image-inlining/run.py
new file mode 100644
index 0000000000..621611002e
--- /dev/null
+++ b/test/854-image-inlining/run.py
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Copyright (C) 2024 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+def run(ctx, args):
+ # Make sure we pass the profile when compiling.
+ ctx.default_run(args, profile=True)