blob: 79a07b7b55a30e4665f91fe8498fe7235b8ddf73 [file] [log] [blame]
# 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="2879914f44cdf60e9841d34fe53ee0f265dc7995"
CROS_WORKON_TREE="905ca6fb21bd9513b1cb796f5929901451fd5fb3"
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
}