mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
test/zdtm: add explicit returns in __criu_act
Add explicit 'return None' to all code paths in __criu_act() so that explicit returns (returning ret on the nowait path) are not mixed with implicit fall-through returns. Assisted-by: Claude Code (claude-opus-4-6) Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
a78378a95f
commit
afea0d7a05
1 changed files with 3 additions and 1 deletions
|
|
@ -1390,7 +1390,7 @@ class criu:
|
|||
strace, preexec)
|
||||
grep_errors(os.path.join(__ddir, log))
|
||||
if ret == 0:
|
||||
return
|
||||
return None
|
||||
rst_succeeded = os.access(
|
||||
os.path.join(__ddir, "restore-succeeded"), os.F_OK)
|
||||
if (self.__test.blocking() and not self.__criu.exit_signal(ret)) or \
|
||||
|
|
@ -1399,6 +1399,8 @@ class criu:
|
|||
else:
|
||||
raise test_fail_exc("CRIU %s" % action)
|
||||
|
||||
return None
|
||||
|
||||
def __stats_file(self, action):
|
||||
return os.path.join(self.__ddir(), "stats-%s" % action)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue