Bug 7458 - bitbake-layers: the output is stderr not stdout
Summary: bitbake-layers: the output is stderr not stdout
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8 M4
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-03-16 06:45 UTC by Yi Zhao
Modified: 2015-03-18 16:28 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-03-16 06:45:48 UTC
Git rev: master/7f30749fe026e9ceb75d73b89271145a45a60763

I found the output of bitbake-laysers is stderr, not stdout, enven the output is not an error message.

Example:
##############
$ bitbake-layers show-layers > my.log
layer                 path                                      priority
==========================================================================
meta                  /buildarea/jenkins-yocto/poky/meta        5
meta-yocto            /buildarea/jenkins-yocto/poky/meta-yocto  5
meta-yocto-bsp        /buildarea/jenkins-yocto/poky/meta-yocto-bsp  5
##############

Then the my.log is empty. I must run the following command to redirect the output. 
#################
$bitbake-layers show-layers 2> my.log
$
$ cat my.log 
layer                 path                                      priority
==========================================================================
meta                  /buildarea/jenkins-yocto/poky/meta        5
meta-yocto            /buildarea/jenkins-yocto/poky/meta-yocto  5
meta-yocto-bsp        /buildarea/jenkins-yocto/poky/meta-yocto-bsp  5
##################