Commit ac6b3b0a authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

zdtm: add 'nolazy' flag for tests not compatible with lazy pages

The kernel support for lazy pages (userfaultfd) lacks many important
features which effectively prevents success in certain tests.
Allow skipping such test with somewhat informative message

travis-ci: success for lazy-pages: improve testability (rev2)
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8be54383
...@@ -1697,6 +1697,11 @@ def run_tests(opts): ...@@ -1697,6 +1697,11 @@ def run_tests(opts):
l.skip(t, "samens test in the same namespace") l.skip(t, "samens test in the same namespace")
continue continue
if opts['lazy_pages']:
if test_flag(tdesc, 'nolazy'):
l.skip(t, "lazy pages are not supported")
continue
test_flavs = tdesc.get('flavor', 'h ns uns').split() test_flavs = tdesc.get('flavor', 'h ns uns').split()
opts_flavs = (opts['flavor'] or 'h,ns,uns').split(',') opts_flavs = (opts['flavor'] or 'h,ns,uns').split(',')
if opts_flavs != ['best']: if opts_flavs != ['best']:
......
# /proc/pid/pagemap doesn't show phys addr for unprivileged users # /proc/pid/pagemap doesn't show phys addr for unprivileged users
{'flavor': 'ns h', 'flags': 'suid'} {'flavor': 'ns h', 'flags': 'suid nolazy'}
{'flavor': 'h ns', 'flags': 'suid'} {'flavor': 'h ns', 'flags': 'suid nolazy'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment