[3/4] zdtm: introduce 'noremotelazy' flag

Submitted by Mike Rapoport on May 29, 2017, 4:11 p.m.

Details

Message ID 1496074310-21104-4-git-send-email-rppt@linux.vnet.ibm.com
State New
Series "test: improve lazy-pages testing"
Headers show

Commit Message

Mike Rapoport May 29, 2017, 4:11 p.m.
This allows skipping tests that are not yet run with --remote-lazy-pages,
but can be run with --lazy-pages

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
---
 test/zdtm.py | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index 886a866..c9854cf 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1742,6 +1742,11 @@  def run_tests(opts):
 					l.skip(t, "lazy pages are not supported")
 					continue
 
+			if opts['remote_lazy_pages']:
+				if test_flag(tdesc, 'noremotelazy'):
+					l.skip(t, "remote lazy pages are not supported")
+					continue
+
 			test_flavs = tdesc.get('flavor', 'h ns uns').split()
 			opts_flavs = (opts['flavor'] or 'h,ns,uns').split(',')
 			if opts_flavs != ['best']: