2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +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:
Pavel Begunkov 2017-06-28 03:41:38 +03:00 committed by Andrei Vagin
parent 3c9290d278
commit 70c0b47d44
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -1 +1 @@
{'dopts': '--tcp-established', 'ropts': '--tcp-close'}
{'dopts': '--tcp-established', 'ropts': '--tcp-close', 'flags': 'reqrst '}