From 70c0b47d4449531a44b3ef044683162f80ebf7bd Mon Sep 17 00:00:00 2001 From: Pavel Begunkov Date: Wed, 28 Jun 2017 03:41:38 +0300 Subject: [PATCH] zdtm: skip 'tcp-close' tests if restore is skipped 'tcp-close' is a option that replaces connected tcp-sockets with 'closed' ones during restoring, therefore it have no sense without restore stage. Thus let's skip related tests if the 'norst' flag was specified. Signed-off-by: Pavel Begunkov Signed-off-by: Andrei Vagin --- test/zdtm.py | 4 ++++ test/zdtm/static/socket-tcp-close0.desc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index ffa48a8d1..0e0ced45c 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -1643,6 +1643,10 @@ def run_tests(opts): l.skip(t, "arch %s" % tdesc['arch']) continue + if test_flag(tdesc, 'reqrst') and opts['norst']: + l.skip(t, "restore stage is required") + continue + if run_all and test_flag(tdesc, 'noauto'): l.skip(t, "manual run only") continue diff --git a/test/zdtm/static/socket-tcp-close0.desc b/test/zdtm/static/socket-tcp-close0.desc index e85de0e66..75ce8a5a0 100644 --- a/test/zdtm/static/socket-tcp-close0.desc +++ b/test/zdtm/static/socket-tcp-close0.desc @@ -1 +1 @@ -{'dopts': '--tcp-established', 'ropts': '--tcp-close'} +{'dopts': '--tcp-established', 'ropts': '--tcp-close', 'flags': 'reqrst '}