summaryrefslogtreecommitdiff
path: root/eclass
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
commit00f5678bfbf0f5fdef19826d7e0b615678a15899 (patch)
tree8ed1d427695aec750a78bd93a7ddb470cc6d8f1e /eclass
parentUse P^^ instead of hard-coded upstream package name. (diff)
downloadhistorical-00f5678bfbf0f5fdef19826d7e0b615678a15899.tar.gz
historical-00f5678bfbf0f5fdef19826d7e0b615678a15899.tar.bz2
historical-00f5678bfbf0f5fdef19826d7e0b615678a15899.zip
error out if loading functions.sh failed
Diffstat (limited to 'eclass')
-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