Export GCLIENT_ROOT from make_autotest

so that tests have access to the source/build trees during setup.
For example, gl_APICheck requires access to OpenGL headers.

Review URL: http://codereview.chromium.org/555111
This commit is contained in:
Darin Petkov 2010-01-26 17:22:04 -08:00
parent c7e05719c5
commit 2857eea2bc

View File

@ -9,9 +9,9 @@
# client tests in the build environment, since client systems under
# test lack the proper toolchain.
#
# The user can enter_chroot later and run autotest against an ssh
# enabled test client system, or install the compiled client tests
# directly onto the rootfs image, using mod_image_for_test.
# The user can later run autotest against an ssh enabled test client system, or
# install the compiled client tests directly onto the rootfs image, using
# mod_image_for_test.sh.
. "$(dirname "$0")/common.sh"
@ -57,5 +57,8 @@ cd ${AUTOTEST_DEST}
touchInitPy client/tests client/site_tests
touch __init__.py
# Export GCLIENT_ROOT so that tests have access to the source and build trees
export GCLIENT_ROOT
# run the magic test setup script.
client/bin/autotest client/site_tests/setup/control