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
43d78feb
Commit
43d78feb
authored
Oct 20, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: Fix exit code propagation from failed tests
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
50ad633a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
zdtm.py
test/zdtm.py
+4
-1
No files found.
test/zdtm.py
View file @
43d78feb
...
...
@@ -740,6 +740,7 @@ def list_tests(opts):
if
os
.
environ
.
has_key
(
'CR_CT_TEST_INFO'
):
# Fork here, since we're new pidns init and are supposed to
# collect this namespace's zombies
status
=
0
pid
=
os
.
fork
()
if
pid
==
0
:
tinfo
=
eval
(
os
.
environ
[
'CR_CT_TEST_INFO'
])
...
...
@@ -748,9 +749,11 @@ if os.environ.has_key('CR_CT_TEST_INFO'):
while
True
:
wpid
,
status
=
os
.
wait
()
if
wpid
==
pid
:
if
not
os
.
WIFEXITED
(
status
)
or
os
.
WEXITSTATUS
(
status
)
!=
0
:
status
=
1
break
;
sys
.
exit
(
0
)
sys
.
exit
(
status
)
p
=
argparse
.
ArgumentParser
(
"CRIU test suite"
)
p
.
add_argument
(
"--debug"
,
help
=
"Print what's being executed"
,
action
=
'store_true'
)
...
...
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