run_remote_tests: for cros_workon, always use prepackaged tests

* Fixes running tests different than from the main autotest repo

* Also provides a better fix for chrome tests

Change-Id: I803ba7caa5561e3001d5627219718f471e59bb19

BUG=
TEST=

Review URL: http://codereview.chromium.org/3448002
This commit is contained in:
Zdenek Behan 2010-09-14 15:11:39 -07:00
parent d0a2e12511
commit 82e95c43e7

View File

@ -154,6 +154,12 @@ function main() {
remote_access_init
# HACK: Temporary hack for cros-workon conversion
# In cros-workon, we always use the prepackaged tests, because the locations
# where tests come from are possibly infinite.
[[ -n "${CROS_WORKON_SRCROOT}" ]] && \
FLAGS_prepackaged_autotest="/build/${FLAGS_board}/usr/local/autotest/"
local autotest_dir=""
if [[ -z "${FLAGS_prepackaged_autotest}" ]]; then
learn_board