summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-12-30 17:09:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-02 12:54:37 +0000
commit2492bec586d407b1a89491aed7e81e80af997248 (patch)
treec2c4977b328ccd5cde88ee44893c1cc84691e165 /scripts
parent89e721830f2b2840d62e613c4bc89eca1fffd03a (diff)
downloadopenembedded-core-2492bec586d407b1a89491aed7e81e80af997248.tar.gz
openembedded-core-2492bec586d407b1a89491aed7e81e80af997248.tar.bz2
openembedded-core-2492bec586d407b1a89491aed7e81e80af997248.zip
test-dependencies.sh: avoid showing misleading error messages
This avoids the following error messages when no dependency issue detected: find: `/build/r_cgp-dep_1225/p_x86_1225/bitbake_build/tmp/work/': No such file or directory grep: test-dependencies/1388042399/3_min/failed/*: No such file or directory ls: cannot access test-dependencies/1388042399/3_min/failed/*: No such file or directory Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test-dependencies.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/test-dependencies.sh b/scripts/test-dependencies.sh
index e4cf4d366b..ca7e687a32 100755
--- a/scripts/test-dependencies.sh
+++ b/scripts/test-dependencies.sh
@@ -178,14 +178,14 @@ build_every_recipe() {
# This will be usefull to see which library is pulling new dependency
echo "Copying do_package logs to ${OUTPUTB}/do_package/"
mkdir ${OUTPUTB}/do_package
- find $tmpdir/work/ -name log.do_package | while read f; do
+ find $tmpdir/work/ -name log.do_package 2>/dev/null| while read f; do
# pn is 3 levels back, but we don't know if there is just one log per pn (only one arch and version)
# dest=`echo $f | sed 's#^.*/\([^/]*\)/\([^/]*\)/\([^/]*\)/log.do_package#\1#g'`
dest=`echo $f | sed "s#$tmpdir/work/##g; s#/#_#g"`
cp $f ${OUTPUTB}/do_package/$dest
done
- grep "ERROR: Task.*failed" ${OUTPUTB}/failed/*
- ls -1 ${OUTPUTB}/failed/* >> ${OUTPUT_BASE}/failed.recipes
+ grep "ERROR: Task.*failed" ${OUTPUTB}/failed/* 2>/dev/null
+ ls -1 ${OUTPUTB}/failed/* >> ${OUTPUT_BASE}/failed.recipes 2>/dev/null
}
compare_deps() {