fail CPU usage test if can't get usage for a process

pull/1772/head
Adeeb Shihadeh 5 years ago
parent 09e7d4ab3a
commit b89d10c086
  1. 1
      common/manager_helpers.py

@ -44,6 +44,7 @@ def print_cpu_usage(first_proc, last_proc):
print(f"{proc_name.ljust(35)} {cpu_usage:.2f}%") print(f"{proc_name.ljust(35)} {cpu_usage:.2f}%")
except IndexError: except IndexError:
print(f"{proc_name.ljust(35)} NO METRICS FOUND") print(f"{proc_name.ljust(35)} NO METRICS FOUND")
r = 1
print("------------------------------------------------") print("------------------------------------------------")
return r return r

Loading…
Cancel
Save