Bug 7458

Summary: bitbake-layers: the output is stderr not stdout
Product: [Build System, Metadata & Runtime] BitBake Reporter: Yi Zhao <yi.zhao>
Component: bitbakeAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, ke.zou, poky.bs.watcher, poky.watcher
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

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
##################