From: Kai Kang Date: Wed, 11 Dec 2013 10:03:40 +0000 (+0800) Subject: LSB_Test.sh: check ldconfig before update cache X-Git-Tag: 2015-4~4262 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e3e5ebd6d05263bd7878537df93e9f1572f1172a;p=openembedded-core.git 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 Signed-off-by: Saul Wold --- 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 ]