data.py 629 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (C) 2016 Intel Corporation
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #
  6. from oeqa.core.case import OETestCase
  7. from oeqa.core.decorator.oetag import OETestTag
  8. from oeqa.core.decorator.data import OETestDataDepends
  9. class DataTest(OETestCase):
  10. data_vars = ['IMAGE', 'ARCH']
  11. @OETestDataDepends(['MACHINE',])
  12. @OETestTag('dataTestOk')
  13. def testDataOk(self):
  14. self.assertEqual(self.td.get('IMAGE'), 'core-image-minimal')
  15. self.assertEqual(self.td.get('ARCH'), 'x86')
  16. self.assertEqual(self.td.get('MACHINE'), 'qemuarm')
  17. @OETestTag('dataTestFail')
  18. def testDataFail(self):
  19. pass