diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-17 11:16:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-17 12:26:12 +0100 |
commit | 1e190eef71376fb0ad89c1a661009d9fb46a7d58 (patch) | |
tree | 0c440c358e48836bf12a9aea17c44092aa34c824 /meta/classes | |
parent | 8cc3b24242624b3ec750db3a09262fe14efb0193 (diff) | |
download | poky-1e190eef71376fb0ad89c1a661009d9fb46a7d58.tar.gz |
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.
(From OE-Core rev: b99acaa8aa06dcbca46c3f7048124d6f8d643a8b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
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): | |||
378 | if last_sstate_dir != sstate_dir: | 378 | if last_sstate_dir != sstate_dir: |
379 | messages = messages + check_sanity_sstate_dir_change(sstate_dir, e.data) | 379 | messages = messages + check_sanity_sstate_dir_change(sstate_dir, e.data) |
380 | 380 | ||
381 | if os.path.exists("conf"): | 381 | if os.path.exists("conf") and not messages: |
382 | f = file(sanityverfile, 'w') | 382 | f = file(sanityverfile, 'w') |
383 | f.write("SANITY_VERSION %s\n" % sanity_version) | 383 | f.write("SANITY_VERSION %s\n" % sanity_version) |
384 | f.write("TMPDIR %s\n" % tmpdir) | 384 | f.write("TMPDIR %s\n" % tmpdir) |