summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-09-12 16:36:26 +0000
committerMike Frysinger <vapier@gentoo.org>2012-09-12 16:36:26 +0000
commit7630a5f5d914c414b4961ad2e1168f834bb336a6 (patch)
tree87da5d7c9390351c3a57e8a2a555e286c5a58a5c /eclass/tests
parentUse P^^ instead of hard-coded upstream package name. (diff)
downloadgentoo-2-7630a5f5d914c414b4961ad2e1168f834bb336a6.tar.gz
gentoo-2-7630a5f5d914c414b4961ad2e1168f834bb336a6.tar.bz2
gentoo-2-7630a5f5d914c414b4961ad2e1168f834bb336a6.zip
error out if loading functions.sh failed
Diffstat (limited to 'eclass/tests')
-rw-r--r--eclass/tests/tests-common.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh
index 9bc5ba61397d..7e3d637255d2 100644
--- a/eclass/tests/tests-common.sh
+++ b/eclass/tests/tests-common.sh
@@ -1,6 +1,9 @@
#!/bin/bash
-source /etc/init.d/functions.sh
+if ! source /etc/init.d/functions.sh ; then
+ echo "Missing functions.sh. Please to install!" 1>&2
+ exit 1
+fi
inherit() {
local e