aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
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:52:32 +0100
commita1e8fa70f6990926b5db976fa1c333073c4f6d8d (patch)
treec56be74eb9a07466b88363e7dc494cb99bd8e74f /meta/classes/sanity.bbclass
parente9bfd0583d7796cb9f71ff8762650e057103e3d2 (diff)
downloadopenembedded-core-a1e8fa70f6990926b5db976fa1c333073c4f6d8d.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] 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/sanity.bbclass')
-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):
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)