summaryrefslogtreecommitdiffstats
path: root/test/003-omnibus-opcodes
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-03-06 22:56:41 -0800
committerBrian Carlstrom <bdc@google.com>2012-03-06 22:56:53 -0800
commit78325a44fbbdfbf47c9f1bd3166afcb71465a013 (patch)
treea0c56c1b792c44a4d4bc041104df1c08a05c9926 /test/003-omnibus-opcodes
parent37c44442a0f1b3ae5f95e40d455022bcafb566e4 (diff)
downloadart-78325a44fbbdfbf47c9f1bd3166afcb71465a013.zip
art-78325a44fbbdfbf47c9f1bd3166afcb71465a013.tar.gz
art-78325a44fbbdfbf47c9f1bd3166afcb71465a013.tar.bz2
Fix 071-dexfile by having run-test use a unique directory
If userdata.img is flashed, the /data/art-test is owned by the system user. However, 071 requires the directory it runs in to have be owned by the running user (root in eng builds). Change-Id: I5230908291fd2ff6c5ebda98cfc3ef4c7ea7482e
Diffstat (limited to 'test/003-omnibus-opcodes')
-rw-r--r--test/003-omnibus-opcodes/build5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/003-omnibus-opcodes/build b/test/003-omnibus-opcodes/build
index f8abd9a..8dbfc90 100644
--- a/test/003-omnibus-opcodes/build
+++ b/test/003-omnibus-opcodes/build
@@ -23,5 +23,6 @@ rm classes/UnresClass.class
${JAVAC} -d classes `find src2 -name '*.java'`
dx -JXmx256m --debug --dex --dump-to=classes.lst --output=classes.dex classes
-zip ${ANDROID_PRODUCT_OUT}/data/art-test/$TEST_NAME.jar classes.dex
-dex2oatd --boot-image=${ANDROID_PRODUCT_OUT}/data/art-test/core.art --dex-file=${ANDROID_PRODUCT_OUT}/data/art-test/$TEST_NAME.jar --dex-location=/data/art-test/$TEST_NAME.jar --oat-file=${ANDROID_PRODUCT_OUT}/data/art-test/$TEST_NAME.jar.oat
+mkdir -p ${ANDROID_PRODUCT_OUT}/data/run-test
+zip ${ANDROID_PRODUCT_OUT}/data/run-test/$TEST_NAME.jar classes.dex
+dex2oatd --boot-image=${ANDROID_PRODUCT_OUT}/data/art-test/core.art --dex-file=${ANDROID_PRODUCT_OUT}/data/run-test/$TEST_NAME.jar --dex-location=/data/run-test/$TEST_NAME.jar --oat-file=${ANDROID_PRODUCT_OUT}/data/run-test/$TEST_NAME.jar.oat