diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2019-05-27 08:56:11 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2019-05-27 08:56:11 -0400 |
commit | cf57e33764ba12a6a30ba6b75ef2aa3ccc192a78 (patch) | |
tree | fe09a69d689b0ad0f8fc1396c2049eb67905fb6c /pytests/powertest.py | |
parent | 24982c2fc634dcb5d033087f59614005f080f288 (diff) | |
download | mongo-35d4931f76959ad191abfed29dfc126d22e2dbfc.tar.gz |
SERVER-41169 Add powercycle Evergreen tasks to SSL Ubuntu 16.04 builder.r4.1.12
Diffstat (limited to 'pytests/powertest.py')
-rwxr-xr-x | pytests/powertest.py | 5 |
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): |