autotest: use installed version of cros_workon

BUG=11507
TEST=Ran run_remote_test.sh and verified that the following is printed:

INFO   : Detected cros_workon autotests. Building and running your autotests from /home/msb/trunk/src/third_party/autotest/files. To use emerged autotest, pass --use_emerged.

Change-Id: Ifc4305088e4edd059fad250d074347bc81a451cf

Review URL: http://codereview.chromium.org/6246141
This commit is contained in:
Mandeep Singh Baines 2011-02-07 11:08:03 -08:00
parent 99768e8e12
commit fa42b03ffe

View File

@ -148,7 +148,7 @@ autotest autotest-tests (or use --build)."
fi
if [ ${FLAGS_build} -eq ${FLAGS_FALSE} ] &&
"${SCRIPTS_DIR}/cros_workon" --board=${FLAGS_board} list |
cros_workon --board=${FLAGS_board} list |
grep -q autotest; then
AUTOTEST_DIR="${SRC_ROOT}/third_party/autotest/files"
FLAGS_build=${FLAGS_TRUE}