nova/nova/tests/unit/privsep
Stephen Finucane ecfcf86538 privsep: Handle ENOENT when checking for direct IO support
We've seen a recent issue that suggest direct IO support checks can fail
in other valid ways than EINVAL, namely, failures with ENOENT or the
FileNotFoundError exception, which is a Python 3-only exception type,
can occur. While we can't test for this without breaking Python 2.7
support, we can mimic this by looking for checking for the errno
attribute of the OSError exception. Do this.

Change-Id: I8aab86bb62cbc8ad538c706af037a30437c7964d
Closes-Bug: #1788922
2018-08-27 17:03:46 +01:00
..
__init__.py
test_fs.py Move configurable mkfs to privsep. 2018-04-04 06:29:32 +10:00
test_idmapshift.py
test_path.py Move last_bytes into the path module 2017-11-06 10:30:21 +02:00
test_utils.py privsep: Handle ENOENT when checking for direct IO support 2018-08-27 17:03:46 +01:00