summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-26 13:28:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-28 23:32:16 +0000
commite330cf4a3842272d2ee238312aaf1fbd34b94f41 (patch)
treeb8a2098f6ed2ac0c4b60179c09da65c74ad76f93 /meta/lib/oeqa
parentaa8319c05da6ffc6ab76cbb71a41b857db235187 (diff)
downloadpoky-e330cf4a3842272d2ee238312aaf1fbd34b94f41.tar.gz
selftest: wic: split test_debug test case
Splitted to test_debug_short and test_debug_long to make each of the test cases to run wic once. This is consistent with the rest of the test cases and ensures that test cases are set up properly. This also fixes the following test failure caused by the image left from the first wic run: FAIL: test_debug (oeqa.selftest.wic.Wic) Test debug ---------------------------------------------------------------------- Traceback (most recent call last): File "meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f return func(*args, **kwargs) File "meta/lib/oeqa/selftest/wic.py", line 270, in test_debug self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) AssertionError: 1 != 2 (From OE-Core rev: a453009821d7d7cb1dd8a7ae05c0d32227b4753b) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/wic.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 11dc7442b3..b279b8ccb7 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -259,12 +259,15 @@ class Wic(oeSelfTest):
259 "-c wrong", ignore_status=True).status) 259 "-c wrong", ignore_status=True).status)
260 260
261 @testcase(1558) 261 @testcase(1558)
262 def test_debug(self): 262 def test_debug_short(self):
263 """Test debug""" 263 """Test -D option"""
264 self.assertEqual(0, runCmd("wic create directdisk " 264 self.assertEqual(0, runCmd("wic create directdisk "
265 "--image-name=core-image-minimal " 265 "--image-name=core-image-minimal "
266 "-D").status) 266 "-D").status)
267 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) 267 self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct")))
268
269 def test_debug_long(self):
270 """Test --debug option"""
268 self.assertEqual(0, runCmd("wic create directdisk " 271 self.assertEqual(0, runCmd("wic create directdisk "
269 "--image-name=core-image-minimal " 272 "--image-name=core-image-minimal "
270 "--debug").status) 273 "--debug").status)