commit: 803cdc3720ca506b1e7f737d7b20d33b3b5e0495 Author: Hanno Böck <hanno <AT> gentoo <DOT> org> AuthorDate: Mon May 4 09:00:28 2020 +0000 Commit: Hanno Böck <hanno <AT> gentoo <DOT> org> CommitDate: Mon May 4 09:00:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803cdc37
rebar.eclass: Run tests with newly compiled library. Closes: https://bugs.gentoo.org/720448 Signed-off-by: Hanno Böck <hanno <AT> gentoo.org> eclass/rebar.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass index 92dd16b08fb..8f08f7a5da7 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" }