Skip to content
Snippets Groups Projects
Commit 7ab9600a authored by Dmitry E. Oboukhov's avatar Dmitry E. Oboukhov
Browse files

Add skipcond to check if tmpfs supports O_DIRECT. closes #209

parent 09688b48
No related branches found
No related tags found
No related merge requests found
# vim: set ft=python :
import re
import os
import os.path
import tempfile
dir = tempfile.mkdtemp()
file = os.path.join(dir, 'test-o-direct')
try:
fh = os.open(file, os.O_CREAT | os.O_DIRECT | os.O_TRUNC | os.O_RDWR)
os.unlink(file)
os.rmdir(dir)
except:
self.skip = 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment