lib/oeqa/selftest/bblayers: use dashed subcommands

bitbake-layers subcommands with underscores are the old syntax; the
dashed form has been supported (and displayed in the help text) for
quite a while now, and the old syntax is about to be unsupported, so use
the dashed form in the tests.

(From OE-Core rev: ab2efd82b2c3419e0139b91c79a9993b257970c9)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2015-02-20 17:44:07 +00:00
committed by Richard Purdie
parent d4f11d6d51
commit f1daefbf52

View File

@@ -18,17 +18,17 @@ class BitbakeLayers(oeSelfTest):
@testcase(83)
def test_bitbakelayers_showlayers(self):
result = runCmd('bitbake-layers show_layers')
result = runCmd('bitbake-layers show-layers')
self.assertTrue('meta-selftest' in result.output)
@testcase(93)
def test_bitbakelayers_showappends(self):
result = runCmd('bitbake-layers show_appends')
result = runCmd('bitbake-layers show-appends')
self.assertTrue('xcursor-transparent-theme_0.1.1.bbappend' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised')
@testcase(90)
def test_bitbakelayers_showoverlayed(self):
result = runCmd('bitbake-layers show_overlayed')
result = runCmd('bitbake-layers show-overlayed')
self.assertTrue('aspell' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised')
@testcase(95)