From 803cdc3720ca506b1e7f737d7b20d33b3b5e0495 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hanno=20B=C3=B6ck?= Date: Mon, 4 May 2020 11:00:28 +0200 Subject: [PATCH] rebar.eclass: Run tests with newly compiled library. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/720448 Signed-off-by: Hanno Böck --- eclass/rebar.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" } -- 2.26.2