summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-23 23:49:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-03 11:43:49 +0100
commit6451c08c7b666992cf99d297c3c1d2226f94e83b (patch)
treed98c2000d35189b4d01ee75e0f4595df83d592f1 /scripts
parent9fbfd4011a4c770478ab9d4cb91a645468f74c55 (diff)
downloadpoky-6451c08c7b666992cf99d297c3c1d2226f94e83b.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/tests/01_wic_test_help.py4
-rw-r--r--scripts/tests/02_wic_test_directdisk.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/tests/01_wic_test_help.py b/scripts/tests/01_wic_test_help.py
index a64cf2f28e..4aaa66fcbf 100644
--- a/scripts/tests/01_wic_test_help.py
+++ b/scripts/tests/01_wic_test_help.py
@@ -28,13 +28,17 @@ class TestWicHelp(unittest.TestCase):
28 """Test help output of wic (sub)commands""" 28 """Test help output of wic (sub)commands"""
29 29
30 def setUp(self): 30 def setUp(self):
31 """This code is executed before each test method."""
31 self.main = imp.load_source("wic", "wic").main 32 self.main = imp.load_source("wic", "wic").main
32 33
33 def testhelp(self): 34 def testhelp(self):
35 """Test wic --help"""
34 self.assertRaises(SystemExit, self.main, ['--help']) 36 self.assertRaises(SystemExit, self.main, ['--help'])
35 37
36 def testcreatehelp(self): 38 def testcreatehelp(self):
39 """Test wic create --help"""
37 self.assertRaises(SystemExit, self.main, ['create', '--help']) 40 self.assertRaises(SystemExit, self.main, ['create', '--help'])
38 41
39 def testlisthelp(self): 42 def testlisthelp(self):
43 """Test wic list --help"""
40 self.assertRaises(SystemExit, self.main, ['list', '--help']) 44 self.assertRaises(SystemExit, self.main, ['list', '--help'])
diff --git a/scripts/tests/02_wic_test_directdisk.py b/scripts/tests/02_wic_test_directdisk.py
index 9108621fbe..6beff71488 100644
--- a/scripts/tests/02_wic_test_directdisk.py
+++ b/scripts/tests/02_wic_test_directdisk.py
@@ -48,10 +48,12 @@ class TestWicDirectdisk(unittest.TestCase):
48 "directdisk-*.direct"))) 48 "directdisk-*.direct")))
49 49
50 def testbuild_image_name(self): 50 def testbuild_image_name(self):
51 """Test wic create directdisk --image-name core-image-minimal"""
51 self._build(["create", "directdisk", 52 self._build(["create", "directdisk",
52 "--image-name", "core-image-minimal"]) 53 "--image-name", "core-image-minimal"])
53 54
54 def testbuild_artifacts(self): 55 def testbuild_artifacts(self):
56 """Test wic create directdisk providing all artifacts."""
55 self._build(["create", "directdisk", 57 self._build(["create", "directdisk",
56 "-b", "tmp/sysroots/qemux86/usr/share", 58 "-b", "tmp/sysroots/qemux86/usr/share",
57 "-k", "tmp/deploy/images/qemux86", 59 "-k", "tmp/deploy/images/qemux86",