diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2017-06-14 13:01:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-23 11:43:37 +0100 |
commit | 08b0702492536d41d3cf2c9c05d1fab36d32a566 (patch) | |
tree | ff92ca4723a15ea85cf2cfcb793401814338057a /meta-selftest | |
parent | f7d105a8e63466afdf226f2139e06f3c0230e2f9 (diff) | |
download | openembedded-core-08b0702492536d41d3cf2c9c05d1fab36d32a566.tar.gz openembedded-core-08b0702492536d41d3cf2c9c05d1fab36d32a566.tar.bz2 openembedded-core-08b0702492536d41d3cf2c9c05d1fab36d32a566.zip |
selftest/devtool: replace file assertTrue/False with assertExists/NotExists
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
Replce assertTrue/assertFalse with assertExists/assertNotExists to test
file path, this will improve assertion message and simplify coding,
self.assertExists(filepath) will print below
AssertionError: <filepath> does not exist
[YOCTO #11356]
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta-selftest')
0 files changed, 0 insertions, 0 deletions