Try to fix art-linux-bionic-zipapex
Use more robust version of `ln` command.
Some tests will run themselves twice and thus run `ln` twice,
which results in creating link inside the link (it should be
harmless, but it somehow seems to cause an error sometimes).
I was unable to reproduce the error locally.
Use -T with `ln` to make it explicit the second argument
is the destination, not a directory of the destination.
I believe this should potentially help.
Test: run_build_test_target.py art-linux-bionic-x64-zipapex
Change-Id: I2c263d9fa17702b545732a446ff00ff128ffc413
diff --git a/test/default_run.py b/test/default_run.py
index 87664aa..c50c22e 100755
--- a/test/default_run.py
+++ b/test/default_run.py
@@ -762,7 +762,7 @@
ANDROID_ART_BIN_DIR = f"{DEX_LOCATION}/zipapex/bin"
# Force since some tests manually run this file twice.
# If the {RUN} is executed multiple times we don't need to recreate the link
- installapex_cmdline = f"ln -s -f --verbose {EXTRACTED_ZIPAPEX_LOC} {DEX_LOCATION}/zipapex"
+ installapex_cmdline = f"ln -sfTv {EXTRACTED_ZIPAPEX_LOC} {DEX_LOCATION}/zipapex"
# PROFILE takes precedence over RANDOM_PROFILE, since PROFILE tests require a
# specific profile to run properly.