Revert "Disable test 727 on target."
This reverts commit 34807565e665dbd43ed10d75782e3dc95ca9fd31.
Reason for revert: Fix the test on target.
Use $DEX_LOCATION instead of $PWD to specify the path to the
`updatable.txt`. Move the file to the `res/` folder so that
it is pushed to the device.
Test: testrunner.py --target -t 727
Test: testrunner.py --host -t 727
Bug: 161898207
Change-Id: I1616e79fb9296a7e11dcd7deb6f9fcfe05459bb1
diff --git a/test/727-checker-unresolved-class/updateable.txt b/test/727-checker-unresolved-class/res/updateable.txt
similarity index 100%
rename from test/727-checker-unresolved-class/updateable.txt
rename to test/727-checker-unresolved-class/res/updateable.txt
diff --git a/test/727-checker-unresolved-class/run b/test/727-checker-unresolved-class/run
index 04b3e17..8b66984 100644
--- a/test/727-checker-unresolved-class/run
+++ b/test/727-checker-unresolved-class/run
@@ -17,5 +17,5 @@
if [[ "$TEST_RUNTIME" == "jvm" ]]; then
exec ${RUN} $@
else
- exec ${RUN} $@ -Xcompiler-option --updatable-bcp-packages-file="$PWD/updateable.txt"
+ exec ${RUN} $@ -Xcompiler-option --updatable-bcp-packages-file="$DEX_LOCATION/res/updateable.txt"
fi
diff --git a/test/knownfailures.json b/test/knownfailures.json
index 139af43..70572cb 100644
--- a/test/knownfailures.json
+++ b/test/knownfailures.json
@@ -1336,12 +1336,6 @@
"description": ["Timeouts."]
},
{
- "tests": ["727-checker-unresolved-class"],
- "variant": "target",
- "bug": "b/161898207",
- "description": ["The run script evaluates $PWD on host."]
- },
- {
"tests": ["003-omnibus-opcodes",
"051-thread",
"427-bounds",