Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py

Issue 703203004: [telemetry] When launching an application elevated, check if it has NOPASSWD in sudoers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use sudo -l. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/core/platform/posix_platform_backend.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
index 962e895ade5beb8c866d53f568d0b0bced85c6e2..77387486f39cd60e666f2f2bbcb335902ce854c6 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py
@@ -50,7 +50,7 @@ def _PrepareHostForPerf():
with tempfile.NamedTemporaryFile() as zero:
zero.write('0')
zero.flush()
- subprocess.call(['sudo', 'cp', zero.name, kptr_file])
+ subprocess.call(['/usr/bin/sudo', 'cp', zero.name, kptr_file])
def _InstallPerfHost():
« no previous file with comments | « tools/telemetry/telemetry/core/platform/posix_platform_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698