diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/core/case.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/case.py b/meta/lib/oeqa/core/case.py index bc4446a938..ad5524a714 100644 --- a/meta/lib/oeqa/core/case.py +++ b/meta/lib/oeqa/core/case.py | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | # | 5 | # |
| 6 | 6 | ||
| 7 | import base64 | 7 | import base64 |
| 8 | import os | ||
| 8 | import zlib | 9 | import zlib |
| 9 | import unittest | 10 | import unittest |
| 10 | 11 | ||
| @@ -57,6 +58,13 @@ class OETestCase(unittest.TestCase): | |||
| 57 | d.tearDownDecorator() | 58 | d.tearDownDecorator() |
| 58 | self.tearDownMethod() | 59 | self.tearDownMethod() |
| 59 | 60 | ||
| 61 | def assertFileExists(self, filename, msg=None): | ||
| 62 | """ | ||
| 63 | Test that filename exists. If it does not, the test will fail. | ||
| 64 | """ | ||
| 65 | if not os.path.exists(filename): | ||
| 66 | self.fail(msg or "%s does not exist" % filename) | ||
| 67 | |||
| 60 | class OEPTestResultTestCase: | 68 | class OEPTestResultTestCase: |
| 61 | """ | 69 | """ |
| 62 | Mix-in class to provide functions to make interacting with extraresults for | 70 | Mix-in class to provide functions to make interacting with extraresults for |
