summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
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:27:54 +0100
commit9bfaf596fb349ba6b3ad7f6f65cd646259233bdc (patch)
treee4c09760e4bb8cea6d31d015ece0eb935084c292 /meta/lib/oeqa
parent79af375397ffa6fe4c76c36c6a8135dcdfd4a8a5 (diff)
downloadpoky-9bfaf596fb349ba6b3ad7f6f65cd646259233bdc.tar.gz
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. (From OE-Core rev: e482f9bfddc6b710c9b566c3d3433dc2d7d5a22e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-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):
153 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)] 153 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)]
154 self.remove_config(global_config[idx]) 154 self.remove_config(global_config[idx])
155 self.remove_recipeinc(target, target_config[idx]) 155 self.remove_recipeinc(target, target_config[idx])
156 self.assertEqual(result.status, 0) 156 self.assertEqual(result.status, 0, msg = "build of %s failed with %s" % (target, result.output))
157 157
158 runCmd("sstate-cache-management.sh -y --cache-dir=%s --remove-duplicated --extra-archs=%s" % (self.sstate_path, ','.join(map(str, sstate_archs_list)))) 158 runCmd("sstate-cache-management.sh -y --cache-dir=%s --remove-duplicated --extra-archs=%s" % (self.sstate_path, ','.join(map(str, sstate_archs_list))))
159 actual_remaining_sstate = [x for x in self.search_sstate(target + '.*?\.tgz$') if not any(pattern in x for pattern in ignore_patterns)] 159 actual_remaining_sstate = [x for x in self.search_sstate(target + '.*?\.tgz$') if not any(pattern in x for pattern in ignore_patterns)]