test: Fix broken build scripts causing art-test-javac to fail
build scripts were not forwarding --host/--target arguments,
generating invalid bootclasspath which caused desugar to fail.
Bug: 36902714
Test: ANDROID_COMPILE_WITH_JACK=false art/test.py
Change-Id: I58d75c27d25e8c89230e9fda319aa11f0cc60034
diff --git a/test/701-easy-div-rem/build b/test/701-easy-div-rem/build
index d83ee82..affb432 100644
--- a/test/701-easy-div-rem/build
+++ b/test/701-easy-div-rem/build
@@ -21,4 +21,4 @@
mkdir src
python ./genMain.py
-./default-build
+./default-build "$@"
diff --git a/test/702-LargeBranchOffset/build b/test/702-LargeBranchOffset/build
index 20030fa..dab7b0d 100644
--- a/test/702-LargeBranchOffset/build
+++ b/test/702-LargeBranchOffset/build
@@ -20,4 +20,4 @@
# Write out the source file.
cpp -P src/Main.java.in src/Main.java
-./default-build
+./default-build "$@"