<div dir="ltr">Can you squash this into the commit that added core/utils/path.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 December 2016 at 20:32, Aníbal Limón <span dir="ltr">&lt;<a href="mailto:anibal.limon@linux.intel.com" target="_blank">anibal.limon@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Checks if path exists before try to remove of avoid exception.<br>
<br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linux.intel.com">anibal.limon@linux.intel.com</a>&gt;<br>
---<br>
 meta/lib/oeqa/core/utils/path.<wbr>py | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/meta/lib/oeqa/core/utils/<wbr>path.py b/meta/lib/oeqa/core/utils/<wbr>path.py<br>
index cb06523..a21caad 100644<br>
--- a/meta/lib/oeqa/core/utils/<wbr>path.py<br>
+++ b/meta/lib/oeqa/core/utils/<wbr>path.py<br>
@@ -12,3 +12,8 @@ def findFile(file_name, directory):<br>
         if file_name in f:<br>
             return os.path.join(r, file_name)<br>
     return None<br>
+<br>
+def remove_safe(path):<br>
+    if os.path.exists(path):<br>
+        os.remove(path)<br>
+<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.4<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>