diff options
Diffstat (limited to 'test/180-native-default-method/build.py')
| -rw-r--r-- | test/180-native-default-method/build.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/180-native-default-method/build.py b/test/180-native-default-method/build.py index dd86a1fcfd..62aac82103 100644 --- a/test/180-native-default-method/build.py +++ b/test/180-native-default-method/build.py @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import subprocess, os - - def build(ctx): ctx.default_build() if ctx.jvm: @@ -25,9 +22,8 @@ def build(ctx): assert f.read(8) == b"dex\n038\x00" f.seek(0) f.write(b"dex\n035\x00") - os.remove(ctx.test_dir / "180-native-default-method.jar") - cmd = [ - ctx.soong_zip, "-o", ctx.test_dir / "180-native-default-method.jar", "-j", + (ctx.test_dir / "180-native-default-method.jar").unlink() + ctx.soong_zip([ + "-o", ctx.test_dir / "180-native-default-method.jar", "-j", "-f", ctx.test_dir / "classes.dex" - ] - subprocess.run(cmd, check=True) + ]) |