summaryrefslogtreecommitdiff
path: root/test/727-checker-unresolved-class
diff options
context:
space:
mode:
Diffstat (limited to 'test/727-checker-unresolved-class')
-rw-r--r--test/727-checker-unresolved-class/run.py (renamed from test/727-checker-unresolved-class/run)26
1 files changed, 15 insertions, 11 deletions
diff --git a/test/727-checker-unresolved-class/run b/test/727-checker-unresolved-class/run.py
index 1c9dd1179c..986897b847 100644
--- a/test/727-checker-unresolved-class/run
+++ b/test/727-checker-unresolved-class/run.py
@@ -14,14 +14,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-if [[ "$TEST_RUNTIME" == "jvm" ]]; then
- exec ${RUN} $@
-else
- # Append graphs for checker tests (we run dex2oat twice) with
- # --dump-cfg-append.
- # Make some classes unresolved for AOT compilation with
- # --updatable-bcp-packages-file.
- exec ${RUN} $@ \
- -Xcompiler-option --dump-cfg-append \
- -Xcompiler-option --updatable-bcp-packages-file="$DEX_LOCATION/res/updateable.txt"
-fi
+
+def run(ctx, args):
+ if args.jvm:
+ ctx.default_run(args)
+ else:
+ # Append graphs for checker tests (we run dex2oat twice) with
+ # --dump-cfg-append.
+ # Make some classes unresolved for AOT compilation with
+ # --updatable-bcp-packages-file.
+ ctx.default_run(
+ args,
+ Xcompiler_option=[
+ "--dump-cfg-append",
+ f"--updatable-bcp-packages-file={ctx.env.DEX_LOCATION}/res/updateable.txt"
+ ])