summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-07 20:24:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-09 14:25:08 +0100
commite482f9bfddc6b710c9b566c3d3433dc2d7d5a22e (patch)
tree473d6e6d1e7834ce44a3a8fa7f01eb050eb5ba76 /meta/lib/oeqa/selftest
parent0dab62934e69019557ebae392dc8cb25e37748c2 (diff)
downloadopenembedded-core-e482f9bfddc6b710c9b566c3d3433dc2d7d5a22e.tar.gz
openembedded-core-e482f9bfddc6b710c9b566c3d3433dc2d7d5a22e.tar.bz2
openembedded-core-e482f9bfddc6b710c9b566c3d3433dc2d7d5a22e.zip
oeqa/sstatettests: Improve output of assert
Currently if this fails you see: "AssertionError: 1 != 0" which is useless. Add the output of the failed command so we can stand some chance of debugging what went wrong. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py
index 1ce8773ff7..6906b21237 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -153,7 +153,7 @@ class SStateTests(SStateBase):
expected_remaining_sstate += [x for x in target_sstate_after_build if x not in target_sstate_before_build if not any(pattern in x for pattern in ignore_patterns)]
self.remove_config(global_config[idx])
self.remove_recipeinc(target, target_config[idx])
- self.assertEqual(result.status, 0)
+ self.assertEqual(result.status, 0, msg = "build of %s failed with %s" % (target, result.output))
runCmd("sstate-cache-management.sh -y --cache-dir=%s --remove-duplicated --extra-archs=%s" % (self.sstate_path, ','.join(map(str, sstate_archs_list))))
actual_remaining_sstate = [x for x in self.search_sstate(target + '.*?\.tgz$') if not any(pattern in x for pattern in ignore_patterns)]