crosutils: make cros_run_unit_tests prepare before building tests

Change-Id: I105c8e37b1241e89efda2c7cef35840bdc32e108

BUG=7754
TEST=Ran cros_run_unit_tests and verify patch (during prepare step) was done

Review URL: http://codereview.chromium.org/3801003
This commit is contained in:
Ken Mixter 2010-10-14 13:23:44 -07:00
parent 9bdd04b730
commit 9b8fd4e671

View File

@ -42,10 +42,10 @@ function record_test_failure() {
function run_unit_test() { function run_unit_test() {
FEATURES="-buildpkg -digest noauto" \ FEATURES="-buildpkg -digest noauto" \
ebuild-${FLAGS_board} "${1}" clean unpack configure test ebuild-${FLAGS_board} "${1}" clean unpack prepare configure test
} }
# Parse command line and die if unexpected paramters given. # Parse command line and die if unexpected parameters given.
FLAGS_HELP="usage: ${0} [flags]" FLAGS_HELP="usage: ${0} [flags]"
FLAGS "${@}" || exit 1 FLAGS "${@}" || exit 1
eval set -- "${FLAGS_ARGV}" eval set -- "${FLAGS_ARGV}"