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>
This commit is contained in:
parent
bd5c5f012c
commit
495d05ce7d
|
@ -7,24 +7,15 @@ do
|
||||||
|
|
||||||
[ ! -d "$libdir" ] && continue
|
[ ! -d "$libdir" ] && continue
|
||||||
|
|
||||||
cd "$libdir"
|
for x in `ls -d $libdir/*/ptest 2>/dev/null`
|
||||||
for x in `find -L ./ -name run-ptest -type f -perm /u+x,g+x`
|
|
||||||
do
|
do
|
||||||
# test if a dir is linking to one that they are under same directory
|
[ ! -f $x/run-ptest ] && continue
|
||||||
# like perl5-->perl
|
[ -h `dirname $x` ] && continue
|
||||||
ptestdir=`dirname $x|cut -f2 -d"/"`
|
|
||||||
if [ -h "$ptestdir" ]; then
|
|
||||||
linkdir=`readlink -f "$ptestdir"`
|
|
||||||
if [ `dirname "$linkdir"` = "$libdir" ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
date "+%Y-%m-%dT%H:%M"
|
date "+%Y-%m-%dT%H:%M"
|
||||||
echo "BEGIN: $x"
|
echo "BEGIN: $x"
|
||||||
pushd `dirname "$x"`
|
cd "$x"
|
||||||
./run-ptest
|
./run-ptest
|
||||||
popd
|
|
||||||
echo "END: $x"
|
echo "END: $x"
|
||||||
date "+%Y-%m-%dT%H:%M"
|
date "+%Y-%m-%dT%H:%M"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue