]> code.ossystems Code Review - openembedded-core.git/commit
selftest: wic: split test_debug test case
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 26 Jan 2017 11:28:17 +0000 (13:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jan 2017 23:31:18 +0000 (23:31 +0000)
commita453009821d7d7cb1dd8a7ae05c0d32227b4753b
treec0b601b39871a9c82e479623ab46937a0d3eaab7
parent3b8dcd210a494baecead7dd1e568fb60ac93ed9b
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 <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/wic.py