blob: 91fa35c588873d32b8a65ed686363cc9496c6da8 [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="8f85d94d20052d093bfe1c39d79e0dc1263a0610"
CROS_WORKON_TREE="1c583b2d807f16162e1bf1133ce6df138261de87"
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="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc 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
}