From: Hanno Böck Date: Mon, 4 May 2020 09:00:28 +0000 (+0200) Subject: rebar.eclass: Run tests with newly compiled library. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=803cdc3720ca506b1e7f737d7b20d33b3b5e0495;p=gentoo.git rebar.eclass: Run tests with newly compiled library. Closes: https://bugs.gentoo.org/720448 Signed-off-by: Hanno Böck --- diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass index 92dd16b08fbf..8f08f7a5da7b 100644 --- a/eclass/rebar.eclass +++ b/eclass/rebar.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: rebar.eclass @@ -105,6 +105,8 @@ erebar() { (( $# > 0 )) || die "erebar: at least one target is required" local -x ERL_LIBS="${EPREFIX}$(get_erl_libs)" + [[ ${1} == eunit ]] && local -x ERL_LIBS="." + rebar -v skip_deps=true "$@" || die -n "rebar $@ failed" }