Set `ANDROID_TZDATA_ROOT` to the TZ Data APEX in `tools/run-gtests.sh`.

Set environment variable `ANDROID_TZDATA_ROOT` to
'/apex/com.android.tzdata' before running gtests on device in the
chroot environment, so that the Time Zone Data APEX is used (instead
of Time Zone Data artifacts installed under
`/system/etc/tzdata_module`).

Note: This environment variable is set by default on devices running
Android Q, but the ART Buildbot uses devices with older Android
releases.

Test: ART chroot-based on-device testing using the master-art branch
Test: ART chroot-based on-device testing using the master branch (with
      `TARGET_FLATTEN_APEX` set to `true` before building).
Bug: 132169989
Bug: 121117762

Change-Id: Idcf4e5f4903649b3871f97967b2bb0e2a2cb1cf5
1 file changed