From: Roy Li <rongqing...@windriver.com> 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;
Signed-off-by: Roy Li <rongqing...@windriver.com> --- .../recipes-support/ptest-runner/files/ptest-runner | 19 +++++-------------- 1 file 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 -- 1.7.10.4 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core