]> code.ossystems Code Review - openembedded-core.git/commitdiff
LSB_Test.sh: check ldconfig before update cache
authorKai Kang <kai.kang@windriver.com>
Wed, 11 Dec 2013 10:03:40 +0000 (18:03 +0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 17 Dec 2013 17:05:14 +0000 (09:05 -0800)
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>
meta/recipes-extended/lsb/lsbtest/LSB_Test.sh

index db4e7496e544e7a5bd48cff63660b8f1a013453e..2004157db1f52d5fabb25460be4c8559838e05c3 100644 (file)
@@ -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 ]