mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
wic tests: Add docstrings to test methods
Docstrings make nosetests output more clear: Test wic create --help ... ok Test wic --help ... ok Test wic list --help ... ok Test wic create directdisk providing all artifacts. ... ok Test wic create directdisk --image-name core-image-minimal ... ok (From OE-Core rev: 3a7ea88528619fdc9d2a0cc0d136e339126e8861) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9fbfd4011a
commit
6451c08c7b
@@ -28,13 +28,17 @@ class TestWicHelp(unittest.TestCase):
|
||||
"""Test help output of wic (sub)commands"""
|
||||
|
||||
def setUp(self):
|
||||
"""This code is executed before each test method."""
|
||||
self.main = imp.load_source("wic", "wic").main
|
||||
|
||||
def testhelp(self):
|
||||
"""Test wic --help"""
|
||||
self.assertRaises(SystemExit, self.main, ['--help'])
|
||||
|
||||
def testcreatehelp(self):
|
||||
"""Test wic create --help"""
|
||||
self.assertRaises(SystemExit, self.main, ['create', '--help'])
|
||||
|
||||
def testlisthelp(self):
|
||||
"""Test wic list --help"""
|
||||
self.assertRaises(SystemExit, self.main, ['list', '--help'])
|
||||
|
||||
@@ -48,10 +48,12 @@ class TestWicDirectdisk(unittest.TestCase):
|
||||
"directdisk-*.direct")))
|
||||
|
||||
def testbuild_image_name(self):
|
||||
"""Test wic create directdisk --image-name core-image-minimal"""
|
||||
self._build(["create", "directdisk",
|
||||
"--image-name", "core-image-minimal"])
|
||||
|
||||
def testbuild_artifacts(self):
|
||||
"""Test wic create directdisk providing all artifacts."""
|
||||
self._build(["create", "directdisk",
|
||||
"-b", "tmp/sysroots/qemux86/usr/share",
|
||||
"-k", "tmp/deploy/images/qemux86",
|
||||
|
||||
Reference in New Issue
Block a user