rebar.eclass: Run tests with newly compiled library.
authorHanno Böck <hanno@gentoo.org>
Mon, 4 May 2020 09:00:28 +0000 (11:00 +0200)
committerHanno Böck <hanno@gentoo.org>
Mon, 4 May 2020 09:00:28 +0000 (11:00 +0200)
Closes: https://bugs.gentoo.org/720448
Signed-off-by: Hanno Böck <hanno@gentoo.org>
eclass/rebar.eclass

index 92dd16b08fbf55fb2f32840c4b754dd2435db06c..8f08f7a5da7b031353588ac71926837747d46c82 100644 (file)
@@ -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"
 }