summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2013-12-11 18:03:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-18 11:21:25 +0000
commitd71314b8ed1b9cb62287ad674aee7fe1931a037c (patch)
treeedae17f4eed0e234b1d77edb03162f8d2efd2e4d /meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
parentb34cc27f4663a558b869b149ffcc43a11684262a (diff)
downloadopenembedded-core-contrib-d71314b8ed1b9cb62287ad674aee7fe1931a037c.tar.gz
openembedded-core-contrib-d71314b8ed1b9cb62287ad674aee7fe1931a037c.tar.bz2
openembedded-core-contrib-d71314b8ed1b9cb62287ad674aee7fe1931a037c.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. (From OE-Core rev: e3e5ebd6d05263bd7878537df93e9f1572f1172a) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsbtest/LSB_Test.sh')
-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 ]