[oe-commits] Saul Wold : santiy.bbclass: Add testfile info to error messages ( more verbose)

git at git.openembedded.org git at git.openembedded.org
Wed Nov 20 11:09:40 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 5c246987e2113cde0a04e1e07a64c41c8b2bb7f0
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5c246987e2113cde0a04e1e07a64c41c8b2bb7f0

Author: Saul Wold <sgw at linux.intel.com>
Date:   Wed Nov 20 00:11:40 2013 +0000

santiy.bbclass: Add testfile info to error messages (more verbose)

Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 6807a23..63d1def 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -185,12 +185,12 @@ def check_create_long_filename(filepath, pathname):
     except IOError as e:
         errno, strerror = e.args
         if errno == 36: # ENAMETOOLONG
-            return "Failed to create a file with a long name in %s. Please use a filesystem that does not unreasonably limit filename length.\n" % pathname
+            return "Failed to create a file with a long name in %s for %s. Please use a filesystem that does not unreasonably limit filename length.\n" % (testfile, pathname)
         else:
-            return "Failed to create a file in %s: %s.\n" % (pathname, strerror)
+            return "Failed to create %s for %s in %s: %s.\n" % (testfile, pathname, strerror)
     except OSError as e:
         errno, strerror = e.args
-        return "Failed to create %s directory in which to run long name sanity check: %s.\n" % (pathname, strerror)
+        return "Failed to create %s directory in which to run long name sanity check: %s with %s.\n" % (pathname, testfile, strerror)
     return ""
 
 def check_path_length(filepath, pathname, limit):



More information about the Openembedded-commits mailing list