diff options
Diffstat (limited to 'test/166-bad-interface-super')
| -rw-r--r-- | test/166-bad-interface-super/build.py (renamed from test/166-bad-interface-super/build) | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/test/166-bad-interface-super/build b/test/166-bad-interface-super/build.py index bba6184e16..b2ff2d774f 100644 --- a/test/166-bad-interface-super/build +++ b/test/166-bad-interface-super/build.py @@ -1,6 +1,5 @@ -#!/bin/bash # -# Copyright 2018 The Android Open Source Project +# Copyright (C) 2022 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. @@ -14,14 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Use the jasmin sources for JVM, otherwise the smali sources. -extra_arg="--no-jasmin" +import os -for arg in "$@"; do - if [[ "$arg" == "--jvm" ]]; then - extra_arg="--no-smali" - break - fi -done -./default-build "$@" "$extra_arg" +def build(ctx): + # Use the jasmin sources for JVM, otherwise the smali sources. + if ctx.jvm: + ctx.default_build(use_smali=False) + else: + ctx.default_build(use_jasmin=False) |