Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sanity.bbclass: If the sanity tests fail, don't mark them as complete
@ 2012-04-17 11:19 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-04-17 11:19 UTC (permalink / raw)
  To: openembedded-core

From adf7a93daf5b648972b8d059cba49f28a64efe82 Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Tue, 17 Apr 2012 11:16:18 +0000
Subject: 

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>
---
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 1b941ac..4d4abd3 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) 





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-17 11:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 11:19 [PATCH] sanity.bbclass: If the sanity tests fail, don't mark them as complete Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox