diff options
author | George Burgess IV <gbiv@google.com> | 2016-09-12 18:24:54 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-13 01:57:54 -0700 |
commit | ed69676d435b7b6983271ed8fab200627a0b966e (patch) | |
tree | 940d47e74352f8bc4c33092f7933187571814ada | |
parent | c9df56c133c35bb5154a6c947d0986c35097c6e1 (diff) | |
download | toolchain-utils-ed69676d435b7b6983271ed8fab200627a0b966e.tar.gz |
crosperf+cros_utils: Swap to #!/usr/bin/env.
`cros lint` was recently updated to complain about
using #!/usr/bin/python{,2,3} directly. Instead, it prefers
/usr/bin/env python{2,3} now.
BUG=None
TEST=./run_tests.sh passes; linter seems much happier with crosperf.
Change-Id: I9b88a7af1f8e03b7c870781c3d8dc1b872a3dfc3
Reviewed-on: https://chrome-internal-review.googlesource.com/286341
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Luis Lozano <llozano@chromium.org>
26 files changed, 26 insertions, 26 deletions
diff --git a/cros_utils/buildbot_json.py b/cros_utils/buildbot_json.py index 693a42cd..8a9d9cb8 100755 --- a/cros_utils/buildbot_json.py +++ b/cros_utils/buildbot_json.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/cros_utils/command_executer_unittest.py b/cros_utils/command_executer_unittest.py index d5f5d0cf..f039ebc5 100755 --- a/cros_utils/command_executer_unittest.py +++ b/cros_utils/command_executer_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 """Unittest for command_executer.py.""" from __future__ import print_function diff --git a/cros_utils/email_sender.py b/cros_utils/email_sender.py index cd45b4ec..e5a20ad2 100755 --- a/cros_utils/email_sender.py +++ b/cros_utils/email_sender.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2011 Google Inc. All Rights Reserved. """Utilities to send email either through SMTP or SendGMR.""" diff --git a/cros_utils/perf_diff.py b/cros_utils/perf_diff.py index c861f6ba..31cde994 100755 --- a/cros_utils/perf_diff.py +++ b/cros_utils/perf_diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2012 Google Inc. All Rights Reserved. """One-line documentation for perf_diff module. diff --git a/crosperf/benchmark_run_unittest.py b/crosperf/benchmark_run_unittest.py index c303daa6..f0815ec0 100755 --- a/crosperf/benchmark_run_unittest.py +++ b/crosperf/benchmark_run_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/benchmark_unittest.py b/crosperf/benchmark_unittest.py index 0a90eef0..320ede65 100755 --- a/crosperf/benchmark_unittest.py +++ b/crosperf/benchmark_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved """Unit tests for the Crosperf Benchmark class.""" diff --git a/crosperf/config_unittest.py b/crosperf/config_unittest.py index b632055e..637dae9e 100755 --- a/crosperf/config_unittest.py +++ b/crosperf/config_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. """Unit tests for config.py""" diff --git a/crosperf/crosperf.py b/crosperf/crosperf.py index 4c13c02b..0a32cb8b 100755 --- a/crosperf/crosperf.py +++ b/crosperf/crosperf.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2011 Google Inc. All Rights Reserved. """The driver script for running performance benchmarks on ChromeOS.""" diff --git a/crosperf/crosperf_test.py b/crosperf/crosperf_test.py index 8f929e71..085efafe 100755 --- a/crosperf/crosperf_test.py +++ b/crosperf/crosperf_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2011 Google Inc. All Rights Reserved. """Test for crosperf.""" diff --git a/crosperf/crosperf_unittest.py b/crosperf/crosperf_unittest.py index 24015b37..4a468967 100755 --- a/crosperf/crosperf_unittest.py +++ b/crosperf/crosperf_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. """Unittest for crosperf.""" diff --git a/crosperf/download_images_buildid_test.py b/crosperf/download_images_buildid_test.py index d00a59fd..3e7f00c1 100755 --- a/crosperf/download_images_buildid_test.py +++ b/crosperf/download_images_buildid_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved """Test translation of xbuddy names.""" diff --git a/crosperf/download_images_unittest.py b/crosperf/download_images_unittest.py index 273a965c..912673c7 100755 --- a/crosperf/download_images_unittest.py +++ b/crosperf/download_images_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved """Download image unittest.""" diff --git a/crosperf/experiment_factory_unittest.py b/crosperf/experiment_factory_unittest.py index 0e836653..df0f8085 100755 --- a/crosperf/experiment_factory_unittest.py +++ b/crosperf/experiment_factory_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/experiment_file_unittest.py b/crosperf/experiment_file_unittest.py index bb4f2256..ed1f176c 100755 --- a/crosperf/experiment_file_unittest.py +++ b/crosperf/experiment_file_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/experiment_runner_unittest.py b/crosperf/experiment_runner_unittest.py index 6ad0c7fa..38ac3874 100755 --- a/crosperf/experiment_runner_unittest.py +++ b/crosperf/experiment_runner_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright (c) 2014 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/flag_test_unittest.py b/crosperf/flag_test_unittest.py index 95d00de0..9f2a7136 100755 --- a/crosperf/flag_test_unittest.py +++ b/crosperf/flag_test_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. diff --git a/crosperf/generate_report_unittest.py b/crosperf/generate_report_unittest.py index 230fe619..7f556320 100755 --- a/crosperf/generate_report_unittest.py +++ b/crosperf/generate_report_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/machine_image_manager_unittest.py b/crosperf/machine_image_manager_unittest.py index 0b75de0a..fe41dc09 100755 --- a/crosperf/machine_image_manager_unittest.py +++ b/crosperf/machine_image_manager_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2015 Google Inc. All Rights Reserved. diff --git a/crosperf/machine_manager_unittest.py b/crosperf/machine_manager_unittest.py index ff97c1f1..2002baa8 100755 --- a/crosperf/machine_manager_unittest.py +++ b/crosperf/machine_manager_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2012 Google Inc. All Rights Reserved. """Unittest for machine_manager.""" diff --git a/crosperf/results_cache_unittest.py b/crosperf/results_cache_unittest.py index 85ed8a81..5a824b14 100755 --- a/crosperf/results_cache_unittest.py +++ b/crosperf/results_cache_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/results_organizer_unittest.py b/crosperf/results_organizer_unittest.py index 0d214124..ccf02973 100755 --- a/crosperf/results_organizer_unittest.py +++ b/crosperf/results_organizer_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/results_report_unittest.py b/crosperf/results_report_unittest.py index cfd4eb9e..ed5c74fa 100755 --- a/crosperf/results_report_unittest.py +++ b/crosperf/results_report_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be diff --git a/crosperf/schedv2_unittest.py b/crosperf/schedv2_unittest.py index 8ad96631..be0fde4b 100755 --- a/crosperf/schedv2_unittest.py +++ b/crosperf/schedv2_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # Copyright 2015 Google Inc. All Rights Reserved. """This contains the unit tests for the new Crosperf task scheduler.""" diff --git a/crosperf/settings_factory_unittest.py b/crosperf/settings_factory_unittest.py index 5df5fd68..c2b8980a 100755 --- a/crosperf/settings_factory_unittest.py +++ b/crosperf/settings_factory_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. """Unittest for crosperf.""" diff --git a/crosperf/settings_unittest.py b/crosperf/settings_unittest.py index ee863b80..9ea7a2f1 100755 --- a/crosperf/settings_unittest.py +++ b/crosperf/settings_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. """unittest for settings.""" diff --git a/crosperf/suite_runner_unittest.py b/crosperf/suite_runner_unittest.py index 28416126..176ef5cf 100755 --- a/crosperf/suite_runner_unittest.py +++ b/crosperf/suite_runner_unittest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/env python2 # # Copyright 2014 Google Inc. All Rights Reserved. """Unittest for suite_runner.""" |