summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2013-09-24 09:16:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-24 17:57:04 +0100
commit495d05ce7d57971514dd538accb14daf754643e6 (patch)
tree473adb500e973c6931fc20e6680525aa1a498321
parentbd5c5f012c71e64f37a7a8995baced98165181b1 (diff)
downloadast2050-yocto-poky-495d05ce7d57971514dd538accb14daf754643e6.zip
ast2050-yocto-poky-495d05ce7d57971514dd538accb14daf754643e6.tar.gz
ptest-runner: compatibile with busybox
Do not use pushd, busybox does not support it if system only has busybox; Replace find command with ls to avoid some busybox's find unsupported options; (From OE-Core rev: 1f059654bc81e55896c96c7c8e32e09f8925a761) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/ptest-runner/files/ptest-runner19
1 files changed, 5 insertions, 14 deletions
diff --git a/meta/recipes-support/ptest-runner/files/ptest-runner b/meta/recipes-support/ptest-runner/files/ptest-runner
index ccb0434..3342413 100644
--- a/meta/recipes-support/ptest-runner/files/ptest-runner
+++ b/meta/recipes-support/ptest-runner/files/ptest-runner
@@ -7,24 +7,15 @@ do
[ ! -d "$libdir" ] && continue
- cd "$libdir"
- for x in `find -L ./ -name run-ptest -type f -perm /u+x,g+x`
+ for x in `ls -d $libdir/*/ptest 2>/dev/null`
do
- # test if a dir is linking to one that they are under same directory
- # like perl5-->perl
- ptestdir=`dirname $x|cut -f2 -d"/"`
- if [ -h "$ptestdir" ]; then
- linkdir=`readlink -f "$ptestdir"`
- if [ `dirname "$linkdir"` = "$libdir" ]; then
- continue
- fi
- fi
-
+ [ ! -f $x/run-ptest ] && continue
+ [ -h `dirname $x` ] && continue
+
date "+%Y-%m-%dT%H:%M"
echo "BEGIN: $x"
- pushd `dirname "$x"`
+ cd "$x"
./run-ptest
- popd
echo "END: $x"
date "+%Y-%m-%dT%H:%M"
done
OpenPOWER on IntegriCloud