        cpu_time = cputime_total(last) - cputime_total(first)
        cpu_usage = cpu_time / dt * 100.
        if cpu_usage > max(normal_cpu_usage * 1.1, normal_cpu_usage + 5.0):
          result += f"Warning {proc_name} using more CPU than normal\n"
          r = 1
        elif cpu_usage < min(normal_cpu_usage * 0.3, max(normal_cpu_usage - 1.0, 0.0)):
          result += f"Warning {proc_name} using less CPU than normal\n"
          r = 1
        result += f"{proc_name.ljust(35)}  {cpu_usage:.2f}%\n"
      except IndexError:
 
</s> remove         r = 1
 </s> add         r = False </s> remove   r = 0
 </s> add   r = True </s> remove import selfdrive.manager as manager
 </s> add  </s> remove   params.put("HasAcceptedTerms", "1")
 </s> add   params.put("HasAcceptedTerms", terms_version)
        r = False
        cpu_time = cputime_total(last) - cputime_total(first)
        cpu_usage = cpu_time / dt * 100.
        if cpu_usage > max(normal_cpu_usage * 1.1, normal_cpu_usage + 5.0):
          result += f"Warning {proc_name} using more CPU than normal\n"
        r = False
        elif cpu_usage < min(normal_cpu_usage * 0.3, max(normal_cpu_usage - 1.0, 0.0)):
          result += f"Warning {proc_name} using less CPU than normal\n"
          r = 1
        result += f"{proc_name.ljust(35)}  {cpu_usage:.2f}%\n"
      except IndexError:
keep keep keep keep replace keep keep keep keep keep
 Improve CPU usage test reliability (#2002)

* run phone tests in parallel

* better cpu test

* re-enable test

* no root

* terms version

* not one

* yes

* debug

* that's coverd by min cpu percent 
selfdrive/test/test_cpu_usage.py