mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
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 <asml.silence@gmail.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
3c9290d278
commit
70c0b47d44
@@ -1643,6 +1643,10 @@ def run_tests(opts):
|
|||||||
l.skip(t, "arch %s" % tdesc['arch'])
|
l.skip(t, "arch %s" % tdesc['arch'])
|
||||||
continue
|
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'):
|
if run_all and test_flag(tdesc, 'noauto'):
|
||||||
l.skip(t, "manual run only")
|
l.skip(t, "manual run only")
|
||||||
continue
|
continue
|
||||||
|
@@ -1 +1 @@
|
|||||||
{'dopts': '--tcp-established', 'ropts': '--tcp-close'}
|
{'dopts': '--tcp-established', 'ropts': '--tcp-close', 'flags': 'reqrst '}
|
||||||
|
Reference in New Issue
Block a user