summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-30 20:55:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 09:15:04 +0100
commit2123a7ef280c23f80bb6ffa9e023a3fc8f3de864 (patch)
treebd0f139cd60a4c6bfce8567ae034e2c33b009987 /meta/classes/sanity.bbclass
parent6af88d873a8c69ef36ae84d7a537c527487a8b9e (diff)
downloadpoky-2123a7ef280c23f80bb6ffa9e023a3fc8f3de864.tar.gz
sanity.bbclass: Use pythonexception to raise real exceptions without backtraces
If the sanity code encounters a version change is doesn't understand, the current output is unreadable and confusing for the user, particularly due to the presence of the backtrace. Use improved functionality in bitbake to improve this and correctly pass python exceptions around. [YOCTO #9291] (From OE-Core rev: a0860e308645f17dbf4b9005b2fc0e9869d730bf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a400bcadd0..662f764533 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -563,10 +563,10 @@ def sanity_check_conffiles(status, d):
563 d.getVar(current_version, True) != d.getVar(required_version, True): 563 d.getVar(current_version, True) != d.getVar(required_version, True):
564 success = True 564 success = True
565 try: 565 try:
566 bb.build.exec_func(func, d) 566 bb.build.exec_func(func, d, pythonexception=True)
567 except NotImplementedError as e: 567 except NotImplementedError as e:
568 success = False 568 success = False
569 status.addresult(e.msg) 569 status.addresult(str(e))
570 if success: 570 if success:
571 status.reparse = True 571 status.reparse = True
572 572