mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
sanity.bbclass: Remove check if /tmp is writable
The check would be managed using BB_DISKMON_DIRS so this removes the check from the sanity class. [YOCTO #8000] (From OE-Core rev: a1e8fa70f6990926b5db976fa1c333073c4f6d8d) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9f87dcf3a3
commit
0a5f2bc3e2
@@ -704,20 +704,6 @@ def check_sanity_everybuild(status, d):
|
||||
if "." in paths or "./" in paths or "" in paths:
|
||||
status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n")
|
||||
|
||||
# Check if /tmp is writable
|
||||
from string import ascii_letters
|
||||
from random import choice
|
||||
from tempfile import mkstemp
|
||||
tmpfd, tmppath = mkstemp()
|
||||
try:
|
||||
f = os.fdopen(tmpfd, "wt")
|
||||
f.write("".join(choice(ascii_letters) for x in range(1024)))
|
||||
f.close()
|
||||
except Exception as err:
|
||||
status.addresult("Failed to write into /tmp; %s. Please verify your filesystem." % err)
|
||||
finally:
|
||||
os.remove(tmppath)
|
||||
|
||||
# Check that the DISTRO is valid, if set
|
||||
# need to take into account DISTRO renaming DISTRO
|
||||
distro = d.getVar('DISTRO', True)
|
||||
|
||||
Reference in New Issue
Block a user