diff --git a/tests/host_tools/memory.py b/tests/host_tools/memory.py index fda07b2a9b1..25badf06ded 100644 --- a/tests/host_tools/memory.py +++ b/tests/host_tools/memory.py @@ -54,7 +54,10 @@ def run(self): """ guest_mem_bytes = self._vm.mem_size_bytes - ps = psutil.Process(self._vm.jailer_clone_pid) + try: + ps = psutil.Process(self._vm.jailer_clone_pid) + except psutil.NoSuchProcess: + return while not self._should_stop: try: mmaps = ps.memory_maps(grouped=False)