summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-07-15 11:21:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-21 23:53:44 +0100
commit0a5f2bc3e2e2f8538e1c3e6602ecb90139e821d0 (patch)
tree019a30af6acbf2da8a2b6b768b20f9156ca36a41 /meta/classes
parent9f87dcf3a3adf0b215b59eac854d372216c9dc0d (diff)
downloadpoky-0a5f2bc3e2e2f8538e1c3e6602ecb90139e821d0.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass14
1 files changed, 0 insertions, 14 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 125cc4c8a0..2855941a7b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -704,20 +704,6 @@ def check_sanity_everybuild(status, d):
704 if "." in paths or "./" in paths or "" in paths: 704 if "." in paths or "./" in paths or "" in paths:
705 status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n") 705 status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n")
706 706
707 # Check if /tmp is writable
708 from string import ascii_letters
709 from random import choice
710 from tempfile import mkstemp
711 tmpfd, tmppath = mkstemp()
712 try:
713 f = os.fdopen(tmpfd, "wt")
714 f.write("".join(choice(ascii_letters) for x in range(1024)))
715 f.close()
716 except Exception as err:
717 status.addresult("Failed to write into /tmp; %s. Please verify your filesystem." % err)
718 finally:
719 os.remove(tmppath)
720
721 # Check that the DISTRO is valid, if set 707 # Check that the DISTRO is valid, if set
722 # need to take into account DISTRO renaming DISTRO 708 # need to take into account DISTRO renaming DISTRO
723 distro = d.getVar('DISTRO', True) 709 distro = d.getVar('DISTRO', True)