<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 2019年03月13日 11:46, Steven Hung (洪于玉)
wrote:<br>
</div>
<blockquote
cite="mid:645555c96f7d4fdc84e1292df014d0da@mtkmbs06n1.mediatek.inc"
type="cite">
<pre wrap="">A previous commit 2f44b9b replace oe.utils.getstatusoutput() to subprocess.check_output(). check_output() don't remove a trailling newline. Fix check_not_nfs() by comparing "6969\n".
Signed-off-by: Steven Hung (洪于玉) <a class="moz-txt-link-rfc2396E" href="mailto:Steven.Hung@mediatek.com"><Steven.Hung@mediatek.com></a>
---
meta/classes/sanity.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 374dacf4d0..2d96e1e161 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -346,7 +346,7 @@ def get_filesystem_id(path):
# Check that the path isn't located on nfs.
def check_not_nfs(path, name):
# The nfs' filesystem id is 6969
- if get_filesystem_id(path) == "6969":
+ if get_filesystem_id(path) == "6969\n":</pre>
</blockquote>
<br>
<pre wrap="">if get_filesystem_id(path).strip() == "6969":
will be a lot better here when doing string comparison.
Lei
</pre>
<br>
<br>
<blockquote
cite="mid:645555c96f7d4fdc84e1292df014d0da@mtkmbs06n1.mediatek.inc"
type="cite">
<pre wrap="">
return "The %s: %s can't be located on nfs.\n" % (name, path)
return ""
--
2.18.0
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Test Better, Test Faster, Test Smarter
Test Early, Test Automatically, Test Often</pre>
</body>
</html>