Comment 0 for bug 1864090

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote : "PathFilter" can raise exception when executing "os.path.isabs(arg)"

"PathFilter" can raise exception when executing "os.path.isabs(arg)". As seen in the CI log [1], "os.path.isabs(arg)" calls "os.getcwd()". This method can return the reported exception if the [2] current directory has been deleted by other process. We should catch and unset this exception.

Log snippet: http://paste.openstack.org/show/789807/

Log: [1] https://164b3e6c67f8dffddea7-f89a5ef8d1bd221399a14347eddacf71.ssl.cf2.rackcdn.com/701733/41/check/neutron-functional/a3fabf6/testr_results.html

[2] https://stackoverflow.com/questions/3210902/python-why-does-os-getcwd-sometimes-crash-with-oserror