]> code.ossystems Code Review - openembedded-core.git/commit
logging: fix oedebug loglevel test
authorDarren Hart <dvhart@linux.intel.com>
Thu, 21 Apr 2011 23:56:49 +0000 (16:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Apr 2011 08:52:28 +0000 (09:52 +0100)
commit5857516404411040598b69c85d184ccdfc0af2e0
treed44b297ea877bc02fc5b756ca5772ab6272e4ce2
parentbe3c2c8a5e16d392ff7b9910fa0124da09e4c72e
logging: fix oedebug loglevel test

When the existing test for loglevel fails, the syntax used results in the recipe
exiting with a silent failure. Performing any bash command after the test block
resolves the problem, such as "shift" or "echo ''". Rewriting with 'if []; then'
blocks provides a cleaner syntax and also resolves the failure.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
meta/classes/base.bbclass