diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-12-30 17:09:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-02 12:56:28 +0000 |
commit | 6710c395f40208e6fddab7056423e70afcd3da3a (patch) | |
tree | d1398bfd4ab5c863af834747179f9d752498e66e /scripts | |
parent | 19fc2ed0ce855ca00772657121f1f496dfdfe62d (diff) | |
download | poky-6710c395f40208e6fddab7056423e70afcd3da3a.tar.gz |
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
(From OE-Core rev: 2492bec586d407b1a89491aed7e81e80af997248)
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test-dependencies.sh | 6 |
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() { | |||
178 | # This will be usefull to see which library is pulling new dependency | 178 | # This will be usefull to see which library is pulling new dependency |
179 | echo "Copying do_package logs to ${OUTPUTB}/do_package/" | 179 | echo "Copying do_package logs to ${OUTPUTB}/do_package/" |
180 | mkdir ${OUTPUTB}/do_package | 180 | mkdir ${OUTPUTB}/do_package |
181 | find $tmpdir/work/ -name log.do_package | while read f; do | 181 | find $tmpdir/work/ -name log.do_package 2>/dev/null| while read f; do |
182 | # pn is 3 levels back, but we don't know if there is just one log per pn (only one arch and version) | 182 | # pn is 3 levels back, but we don't know if there is just one log per pn (only one arch and version) |
183 | # dest=`echo $f | sed 's#^.*/\([^/]*\)/\([^/]*\)/\([^/]*\)/log.do_package#\1#g'` | 183 | # dest=`echo $f | sed 's#^.*/\([^/]*\)/\([^/]*\)/\([^/]*\)/log.do_package#\1#g'` |
184 | dest=`echo $f | sed "s#$tmpdir/work/##g; s#/#_#g"` | 184 | dest=`echo $f | sed "s#$tmpdir/work/##g; s#/#_#g"` |
185 | cp $f ${OUTPUTB}/do_package/$dest | 185 | cp $f ${OUTPUTB}/do_package/$dest |
186 | done | 186 | done |
187 | grep "ERROR: Task.*failed" ${OUTPUTB}/failed/* | 187 | grep "ERROR: Task.*failed" ${OUTPUTB}/failed/* 2>/dev/null |
188 | ls -1 ${OUTPUTB}/failed/* >> ${OUTPUT_BASE}/failed.recipes | 188 | ls -1 ${OUTPUTB}/failed/* >> ${OUTPUT_BASE}/failed.recipes 2>/dev/null |
189 | } | 189 | } |
190 | 190 | ||
191 | compare_deps() { | 191 | compare_deps() { |