sanity.bbclass: Ensure tmpdir exists when running the check
This avoids tracebacks from bitbake if the directory doesn't already exist. [YOCTO #3640] (From OE-Core rev: 1a60e96b21d328fe936e594f3061459e8f2f1b5e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f19bdeab37
commit
932a4cdf4b
|
@ -570,6 +570,7 @@ def check_sanity(sanity_data):
|
|||
if (saved_tmpdir != tmpdir):
|
||||
messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
|
||||
else:
|
||||
bb.utils.mkdirhier(tmpdir)
|
||||
f = file(checkfile, "w")
|
||||
f.write(tmpdir)
|
||||
f.close()
|
||||
|
|
Loading…
Reference in New Issue