diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2017-05-21 11:22:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-25 23:59:31 +0100 |
commit | 61b2aef03a1e7b6a0e467a54cc0bd411ab3fc6ad (patch) | |
tree | b758079be03c1f39ecccca2c3fc6b098863b6644 /meta/recipes-extended/libidn | |
parent | 8da8909b7b0612beb71628bef06b5047608fd27a (diff) | |
download | poky-61b2aef03a1e7b6a0e467a54cc0bd411ab3fc6ad.tar.gz |
base.py: add assertExists and assertNotExists to oeselftest
Current osselftest print confusing assertion message when using
self.assertTrue(os.path.exists(filepath)) to test file path,
example of confusing assertion message:
AssertionError: False is not true
Add the assertExists and assertNotExists to improve assertion
message and simplify coding, using selft.assertExists(filepath),
will print meaningful assertion message:
AssertionError: <filepath> does not exist
[YOCTO #11356]
(From OE-Core rev: b0a74554ef926ce05078494ca8e67178b56232f5)
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/libidn')
0 files changed, 0 insertions, 0 deletions