[oe-commits] Kai Kang : LSB_Test.sh: check ldconfig before update cache
git at git.openembedded.org
git at git.openembedded.org
Wed Dec 18 11:43:44 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: e3e5ebd6d05263bd7878537df93e9f1572f1172a
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e3e5ebd6d05263bd7878537df93e9f1572f1172a
Author: Kai Kang <kai.kang at windriver.com>
Date: Wed Dec 11 18:03:40 2013 +0800
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 at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index db4e749..2004157 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 ]
More information about the Openembedded-commits
mailing list