summaryrefslogtreecommitdiff
path: root/test/674-hiddenapi/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/674-hiddenapi/build.py')
-rw-r--r--test/674-hiddenapi/build.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/674-hiddenapi/build.py b/test/674-hiddenapi/build.py
index f518d51aee..f8c760004d 100644
--- a/test/674-hiddenapi/build.py
+++ b/test/674-hiddenapi/build.py
@@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from art_build_rules import build_run_test, rm
import os
# Build the jars twice. First with applying hiddenapi, creating a boot jar, then
@@ -23,14 +22,16 @@ import os
# hidden API access flags in dex files. DexFileVerifier is not invoked on boot
# class path dex files, so the boot jar loads fine in the latter case.
-build_run_test(use_hiddenapi=True)
-# Move the jar file into the resource folder to be bundled with the test.
-os.mkdir("res")
-os.rename("674-hiddenapi.jar", "res/boot.jar")
+def build(ctx):
+ ctx.default_build(use_hiddenapi=True)
-# Clear all intermediate files otherwise default-build would either skip
-# compilation or fail rebuilding.
-rm("classes*")
+ # Move the jar file into the resource folder to be bundled with the test.
+ os.mkdir("res")
+ os.rename("674-hiddenapi.jar", "res/boot.jar")
-build_run_test(use_hiddenapi=False)
+ # Clear all intermediate files otherwise default-build would either skip
+ # compilation or fail rebuilding.
+ ctx.bash("rm -rf classes*")
+
+ ctx.default_build(use_hiddenapi=False)