Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
896837ce
Commit
896837ce
authored
Oct 20, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: Do not compare maps and fds for non-static tests
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
43d78feb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
zdtm.py
test/zdtm.py
+14
-4
No files found.
test/zdtm.py
View file @
896837ce
...
...
@@ -239,7 +239,7 @@ class zdtm_test:
self
.
__flavor
.
fini
()
def
stop
(
self
):
print
"Stop test"
self
.
getpid
()
# Read the pid from pidfile back
self
.
kill
(
signal
.
SIGTERM
)
res
=
tail
(
self
.
__name
+
'.out'
)
...
...
@@ -286,6 +286,10 @@ class zdtm_test:
print
open
(
self
.
__name
+
'.out'
)
.
read
()
print
" <<< "
+
"="
*
32
def
static
(
self
):
return
self
.
__name
.
split
(
'/'
)[
2
]
==
'static'
class
inhfd_test
:
def
__init__
(
self
,
name
,
desc
,
flavor
):
...
...
@@ -365,6 +369,9 @@ class inhfd_test:
def
print_output
(
self
):
pass
def
static
(
self
):
return
True
test_classes
=
{
'zdtm'
:
zdtm_test
,
'inhfd'
:
inhfd_test
}
...
...
@@ -505,9 +512,12 @@ def cmp_lists(m1, m2):
return
filter
(
lambda
x
:
x
[
0
]
!=
x
[
1
],
zip
(
m1
,
m2
))
def
get_visible_state
(
test
):
fds
=
get_fds
(
test
)
maps
=
get_maps
(
test
)
return
(
fds
,
maps
)
if
test
.
static
():
fds
=
get_fds
(
test
)
maps
=
get_maps
(
test
)
return
(
fds
,
maps
)
else
:
return
([],
[])
def
check_visible_state
(
test
,
state
):
new
=
get_visible_state
(
test
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment