summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index b26ea6b372..8531df16b0 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -175,7 +175,8 @@ def check_conf_exists(fn, data):
175 return False 175 return False
176 176
177def check_create_long_filename(filepath, pathname): 177def check_create_long_filename(filepath, pathname):
178 testfile = os.path.join(filepath, ''.join([`num`[-1] for num in xrange(1,200)])) 178 import string, random
179 testfile = os.path.join(filepath, ''.join(random.choice(string.ascii_letters) for x in range(200)))
179 try: 180 try:
180 if not os.path.exists(filepath): 181 if not os.path.exists(filepath):
181 bb.utils.mkdirhier(filepath) 182 bb.utils.mkdirhier(filepath)