summaryrefslogtreecommitdiff
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2013-12-11 18:03:40 +0800
committerSaul Wold <sgw@linux.intel.com>2013-12-17 09:05:14 -0800
commite3e5ebd6d05263bd7878537df93e9f1572f1172a (patch)
tree4bd9ab406d3e07e95426de3f89e61536f21bd6e7 /meta/recipes-extended
parent02d3233b57cda03dfef08983c7f9a03285444c83 (diff)
downloadopenembedded-core-e3e5ebd6d05263bd7878537df93e9f1572f1172a.tar.gz
openembedded-core-e3e5ebd6d05263bd7878537df93e9f1572f1172a.tar.bz2
openembedded-core-e3e5ebd6d05263bd7878537df93e9f1572f1172a.zip
LSB_Test.sh: check ldconfig before update cache
LSB_Test.sh run ldconfig to update library cache. If command ldconfig doesn't exists, test will fail. Check whether ldconfig exists. If not, don't update library cache. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/lsb/lsbtest/LSB_Test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index db4e7496e5..2004157db1 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -444,11 +444,13 @@ else
echo "Fail to creat Dirnames file"
fi
+[ -x /sbin/ldconfig ] && {
echo ""
echo "---------------------------------"
echo "Update cache"
-ldconfig
+/sbin/ldconfig
check;
+}
# Check loop device
if [ ! -b /dev/loop0 ]