From 21f9844fa96bbeadf78283e274dfd879ae60f6bb Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 5 Aug 2015 14:37:13 +0100 Subject: oe-selftest: replace assertTrue(False, ...) with fail(...) I'd somehow missed the existence of fail() when I wrote these. It's preferable here so you don't get the somewhat useless "false is not true" message in the case of failure. (From OE-Core rev: 173a5896fff57136e1f15e15f90961416aadde94) Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/devtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oeqa/selftest/devtool.py') diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index 947d8eecf1..70ee634c71 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py @@ -51,7 +51,7 @@ class DevtoolBase(oeSelfTest): bbappendfile = bbappend break else: - self.assertTrue(False, 'bbappend for recipe %s does not seem to be created in test layer' % testrecipe) + self.fail('bbappend for recipe %s does not seem to be created in test layer' % testrecipe) return bbappendfile def _create_temp_layer(self, templayerdir, addlayer, templayername, priority=999, recipepathspec='recipes-*/*'): -- cgit v1.2.3-54-g00ecf