Fix exit status of ART run-test 119-noimage-patchoat's `run` script.
Script test/119-noimage-patchoat/run executes this test four times
with various settings. The second instance is expected to fail. This
change adjusts the exit status of the `run` script to take this into
account.
Test: ./art/test/testrunner/testrunner.py --relocate -t 119-noimage-patchoat
Change-Id: I3553e66e77ff73e14442d28e35b9099fad7e8406
diff --git a/test/119-noimage-patchoat/run b/test/119-noimage-patchoat/run
index a5877cb..497dc4a 100644
--- a/test/119-noimage-patchoat/run
+++ b/test/119-noimage-patchoat/run
@@ -39,7 +39,8 @@
echo "Run -Xnoimage-dex2oat -Xpatchoat:/system/bin/false -Xno-dex-file-fallback"
${RUN} ${flags} ${BPATH} --runtime-option -Xnoimage-dex2oat \
--runtime-option -Xpatchoat:${false_bin} --runtime-option -Xno-dex-file-fallback
-return_status2=$?
+# This second run is expected to fail: invert the return status of the previous command.
+return_status2=$((! $?))
# Make sure we can run with the image file.
echo "Run -Ximage-dex2oat"