Commit d0c9db15 authored by thestig's avatar thestig Committed by Commit bot

Telemetry: Don't use the full path to rdmsr on Linux.

This fixes the bots, even though when I log into the bots and run rdmsr
with the full path through Python, it works fine. This should be ok,
since Ubuntu includes the sbin directories in the path by default.

BUG=336556

Review URL: https://codereview.chromium.org/640323004

Cr-Commit-Position: refs/heads/master@{#299019}
parent 79aaddd7
...@@ -104,7 +104,7 @@ class LinuxPlatformBackend( ...@@ -104,7 +104,7 @@ class LinuxPlatformBackend(
return self._power_monitor.StopMonitoringPower() return self._power_monitor.StopMonitoringPower()
def ReadMsr(self, msr_number, start=0, length=64): def ReadMsr(self, msr_number, start=0, length=64):
cmd = ['/usr/sbin/rdmsr', '-d', str(msr_number)] cmd = ['rdmsr', '-d', str(msr_number)]
(out, err) = subprocess.Popen(cmd, (out, err) = subprocess.Popen(cmd,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate() stderr=subprocess.PIPE).communicate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment