From 9b7308d1554bfa7f9ed2fa0b5b6415d31989309a Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Tue, 9 Jan 2007 01:21:19 +0000 Subject: Always run src_test when calling 'ebuild foo test' svn path=/main/trunk/; revision=5487 --- bin/ebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 1a9381682..5abc44bf9 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1010,6 +1010,7 @@ dyn_compile() { } dyn_test() { + [ "${EBUILD_FORCE_TEST}" == "1" ] && rm -f "${PORTAGE_BUILDDIR}/.tested" [ "$(type -t pre_src_test)" == "function" ] && qa_call pre_src_test if [ "${PORTAGE_BUILDDIR}/.tested" -nt "${WORKDIR}" ]; then vecho ">>> It appears that ${PN} has already been tested; skipping." @@ -1020,7 +1021,7 @@ dyn_test() { if [ -d "${S}" ]; then cd "${S}" fi - if ! hasq test $FEATURES; then + if ! hasq test $FEATURES && [ "${EBUILD_FORCE_TEST}" != "1" ]; then vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}" elif hasq test $RESTRICT; then ewarn "Skipping make test/check due to ebuild restriction." -- cgit v1.2.3-1-g7c22