Commit 7f936f3b authored by Andrei Vagin's avatar Andrei Vagin

zdtm: fix a lint warning

$ make lint
flake8 --config=scripts/flake8.cfg test/zdtm.py
test/zdtm.py:323:19: F841 local variable 'e' is assigned to but never used
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 4fe32e5d
...@@ -314,6 +314,8 @@ def wait_pid_die(pid, who, tmo = 30): ...@@ -314,6 +314,8 @@ def wait_pid_die(pid, who, tmo = 30):
try: try:
os.kill(int(pid), 0) os.kill(int(pid), 0)
except OSError, e: except OSError, e:
if e.errno != errno.ESRCH:
print e
break break
print "Wait for %s(%d) to die for %f" % (who, pid, stime) print "Wait for %s(%d) to die for %f" % (who, pid, stime)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment