diff options
author | Kai Kang <kai.kang@windriver.com> | 2013-12-11 18:03:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-18 11:21:25 +0000 |
commit | d71314b8ed1b9cb62287ad674aee7fe1931a037c (patch) | |
tree | edae17f4eed0e234b1d77edb03162f8d2efd2e4d /meta/recipes-extended | |
parent | b34cc27f4663a558b869b149ffcc43a11684262a (diff) | |
download | ast2050-yocto-poky-d71314b8ed1b9cb62287ad674aee7fe1931a037c.zip ast2050-yocto-poky-d71314b8ed1b9cb62287ad674aee7fe1931a037c.tar.gz |
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')
-rw-r--r-- | meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 |
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 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 ] |