From a453009821d7d7cb1dd8a7ae05c0d32227b4753b Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 26 Jan 2017 13:28:17 +0200 Subject: 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/wic.py | 7 +++++-- 1 file 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): "-c wrong", ignore_status=True).status) @testcase(1558) - def test_debug(self): - """Test debug""" + def test_debug_short(self): + """Test -D option""" self.assertEqual(0, runCmd("wic create directdisk " "--image-name=core-image-minimal " "-D").status) self.assertEqual(1, len(glob(self.resultdir + "directdisk-*.direct"))) + + def test_debug_long(self): + """Test --debug option""" self.assertEqual(0, runCmd("wic create directdisk " "--image-name=core-image-minimal " "--debug").status) -- cgit v1.2.3