summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-17 11:16:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-17 12:24:59 +0100
commitb99acaa8aa06dcbca46c3f7048124d6f8d643a8b (patch)
tree509c770d1d834f1bb46a3102fd77562cbd44713f /meta
parent16542d982d86d42d3189d47a8180f0f71646a9ca (diff)
downloadopenembedded-core-b99acaa8aa06dcbca46c3f7048124d6f8d643a8b.tar.gz
openembedded-core-b99acaa8aa06dcbca46c3f7048124d6f8d643a8b.tar.bz2
openembedded-core-b99acaa8aa06dcbca46c3f7048124d6f8d643a8b.zip
sanity.bbclass: If the sanity tests fail, don't mark them as complete
If the sanity tests fail, we still were writing out the stamp which means they'd get skipped the next time we run bitbake. This is clearly wrong and we should only write out the stamp file if the sanity tests complete successfully. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 1b941ac58c..4d4abd3ea5 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -378,7 +378,7 @@ def check_sanity(e):
if last_sstate_dir != sstate_dir:
messages = messages + check_sanity_sstate_dir_change(sstate_dir, e.data)
- if os.path.exists("conf"):
+ if os.path.exists("conf") and not messages:
f = file(sanityverfile, 'w')
f.write("SANITY_VERSION %s\n" % sanity_version)
f.write("TMPDIR %s\n" % tmpdir)