]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Remove check if /tmp is writable
authorMariano Lopez <mariano.lopez@linux.intel.com>
Wed, 15 Jul 2015 11:21:51 +0000 (11:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jul 2015 22:52:32 +0000 (23:52 +0100)
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>
meta/classes/sanity.bbclass

index 125cc4c8a0b4cf4ab43564f2d7de64f9b047b939..2855941a7ba28412f41799c6405d4d359651e28c 100644 (file)
@@ -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)