summaryrefslogtreecommitdiff
path: root/pytests
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2019-05-27 08:56:11 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2019-05-27 08:56:11 -0400
commitcf57e33764ba12a6a30ba6b75ef2aa3ccc192a78 (patch)
treefe09a69d689b0ad0f8fc1396c2049eb67905fb6c /pytests
parent24982c2fc634dcb5d033087f59614005f080f288 (diff)
downloadmongo-cf57e33764ba12a6a30ba6b75ef2aa3ccc192a78.tar.gz
SERVER-41169 Add powercycle Evergreen tasks to SSL Ubuntu 16.04 builder.r4.1.12
Diffstat (limited to 'pytests')
-rwxr-xr-xpytests/powertest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pytests/powertest.py b/pytests/powertest.py
index d1fcc29f499..f330a645a3b 100755
--- a/pytests/powertest.py
+++ b/pytests/powertest.py
@@ -772,7 +772,10 @@ class ProcessControl(object):
"""Return a list of 'proc' for the associated pids."""
procs = []
for pid in self.get_pids():
- procs.append(psutil.Process(pid))
+ try:
+ procs.append(psutil.Process(pid))
+ except psutil.NoSuchProcess:
+ pass
return procs
def is_running(self):