[autotest] Add a symlink before building PIL package

A new test requires PIL.Image.core.zip_decoder, which is provided by zlib.
The path of zlib library might be different from what PIL setup.py is
expected. This change does the best attempt to link the library
to a path PIL setup.py will try.

BUG=chromium:466826
TEST=run following python script, confirm Image.core.zip_decoder does not exist
before this change. After this change applied, run build_externals, then run
the python script again, confirm Image.core.zip_decoder exists.
import common
from PIL import Image
Image.core.zip_decoder

DEPOLOY=build_externals

Change-Id: I5856d9817cc4c9ee2bc69a740d56311d585edba5
Reviewed-on: https://chromium-review.googlesource.com/260130
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
1 file changed