[bitbake-devel] [[RFC][PATCH] 2/8] toaster/tests: Add __init__.py and base.py.
Aníbal Limón
anibal.limon at linux.intel.com
Tue Feb 23 00:51:52 UTC 2016
Add empty __init__.py for set folder as module.
Add base.py module that contains a base class for toaster test
cases now have an object with options and a logger.
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
lib/toaster/tests/__init__.py | 0
lib/toaster/tests/base.py | 11 +++++++++++
2 files changed, 11 insertions(+)
create mode 100644 lib/toaster/tests/__init__.py
create mode 100644 lib/toaster/tests/base.py
diff --git a/lib/toaster/tests/__init__.py b/lib/toaster/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/lib/toaster/tests/base.py b/lib/toaster/tests/base.py
new file mode 100644
index 0000000..8b303ac
--- /dev/null
+++ b/lib/toaster/tests/base.py
@@ -0,0 +1,11 @@
+import unittest
+
+class ToasterOptions(object):
+ pass
+
+class ToasterTestCase(unittest.TestCase):
+ def __init__(self, testname, opts, logger):
+ super(ToasterTestCase, self).__init__(testname)
+
+ self.opts = opts
+ self.logger = logger
--
2.1.4
More information about the bitbake-devel
mailing list