| # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="4" |
| CROS_WORKON_COMMIT="d11ce2adeeab514f34e473824904f2f0885e3da1" |
| CROS_WORKON_TREE="f43b8cacb971149117f32129dcaadcb46b46fa9d" |
| CROS_WORKON_PROJECT="chromiumos/chromite" |
| CROS_WORKON_LOCALNAME="../../chromite" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| inherit cros-workon |
| |
| DESCRIPTION="Wrapper for running chromite unit tests" |
| HOMEPAGE="http://www.chromium.org/" |
| |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="amd64 arm x86" |
| |
| src_test() { |
| # Run the chromite unit tests, resetting the environment to the standard |
| # one using a sudo invocation. |
| cd "${S}"/buildbot && sudo -u "${PORTAGE_USERNAME}" \ |
| PATH="${CROS_WORKON_SRCROOT}/../depot_tools:${PATH}" ./run_tests || die |
| } |