]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/ftools: Ignore the exception if file does not exist
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Mon, 19 Oct 2015 21:38:42 +0000 (21:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Oct 2015 21:52:40 +0000 (22:52 +0100)
commit1136f9e02d9cbe2c2cda189321d72b763649ba42
tree845f5c49efb4f91065427b0d9b527ec1e0a5df02
parentaed5b7aef33459f1bb5fa29560920c254a5fd637
oeqa/utils/ftools: Ignore the exception if file does not exist

There may be cases where the configuration file (path) does not exist,
thus the remove_from_file should catch this exception. In case the exception
is not the latter (errno.ENOENT), then re-raise it.

[YOCTO #8540]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/ftools.py