Bug 5126

Summary: ptest-runner can not deal with soft link under /usr/lib or /usr/lib64, such as perl5 --> perl
Product: [Build System, Metadata & Runtime] OE-Core Reporter: LiRongQing <rongqing.li>
Component: coreAssignee: LiRongQing <rongqing.li>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bjst, meta.mr.watcher, meta.watcher
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description LiRongQing 2013-09-05 09:34:24 UTC
ptest-runner will check all directory under /usr/lib* and confirm which directory
contain ptest, if the directory have a soft link under /use/lib*, ptest-runner will
run the test two times.
For example, the ptest under perl5 will be run two times.
root@localhost:~# ls -l /usr/lib64 | grep perl
lrwxrwxrwx 1 root root 4 Aug 20 12:11 perl5 -> perl

root@localhost:~# grep BEGIN: /ptest-run-2013-08-21T06\:46.log
BEGIN: bash
BEGIN: busybox
BEGIN: bzip2
BEGIN: dbus-ptest
BEGIN: ethtool
BEGIN: glib-2.0
BEGIN: kmod
BEGIN: perl
BEGIN: perl5
BEGIN: python
BEGIN: strace
root@localhost:~#
Comment 1 LiRongQing 2013-09-12 00:05:32 UTC
Author: Roy Li <rongqing.li@windriver.com>
Date:   Wed Sep 11 17:17:32 2013 +0800

    ptest-runner: trivial fixes and refine
    
    1. ptest files may be installed under /usr/lib64/ for 64bit filesystem
    or under /usr/lib/ for 64bit multilib filesystem, so we should check both
    directories
    
    2. If a soft link is linking to a directory under the same directory, we
    only run once.
    
    [YOCTO #5125]
    [YOCTO #5126]
    
    Signed-off-by: Roy Li <rongqing.li@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>