summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2020-05-04 11:00:28 +0200
committerHanno Böck <hanno@gentoo.org>2020-05-04 11:00:28 +0200
commit803cdc3720ca506b1e7f737d7b20d33b3b5e0495 (patch)
tree7e195c207e6784c58b9e2aa74ca49957187e1f97 /eclass
parentdev-python/pycurl: Skip telnet tests if curl[-telnet] (diff)
downloadgentoo-803cdc3720ca506b1e7f737d7b20d33b3b5e0495.tar.gz
gentoo-803cdc3720ca506b1e7f737d7b20d33b3b5e0495.tar.bz2
gentoo-803cdc3720ca506b1e7f737d7b20d33b3b5e0495.zip
rebar.eclass: Run tests with newly compiled library.
Closes: https://bugs.gentoo.org/720448 Signed-off-by: Hanno Böck <hanno@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rebar.eclass4
1 files changed, 3 insertions, 1 deletions
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"
}