test/zdtm: remove unnecessary pass statements

The pass statements are redundant since the except blocks
already contain a print() call.

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:05:04 +00:00 committed by Radostin Stoyanov
parent 185f9e63ff
commit 3179290ca3

View file

@ -2134,7 +2134,7 @@ def is_proc_stopped(pid):
return line.split(":", 1)[1].strip().split(" ")[0]
except Exception as e:
print("Unable to read a thread status: %s" % e)
pass # process is dead
# process is dead
return None
def is_thread_stopped(status):
@ -2146,7 +2146,7 @@ def is_proc_stopped(pid):
thread_dirs = os.listdir(tasks_dir)
except Exception as e:
print("Unable to read threads: %s" % e)
pass # process is dead
# process is dead
for thread_dir in thread_dirs:
thread_status = get_thread_status(os.path.join(tasks_dir, thread_dir))
@ -2171,7 +2171,7 @@ def pstree_signal(root_pid, signal):
os.kill(int(pid), signal)
except Exception as e:
print("Unable to kill %d: %s" % (pid, e))
pass # process is dead
# process is dead
def do_run_test(tname, tdesc, flavs, opts):