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:
Adrian Reber 2026-07-09 13:13:41 +00:00 committed by Radostin Stoyanov
parent a78378a95f
commit afea0d7a05

View file

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