blob: 5a620e4a54a223d37094fd95dda7c81c29a78325 [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="690886d0515666774f348d8fb539e6e5b88543c0"
CROS_WORKON_TREE="f8c3f1160aa9c3a942ae2c0d66d718741dee45e6"
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
}