From 7630a5f5d914c414b4961ad2e1168f834bb336a6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 12 Sep 2012 16:36:26 +0000 Subject: error out if loading functions.sh failed --- eclass/tests/tests-common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eclass/tests') 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 -- cgit v1.2.3-65-gdbad