summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2019-09-22 10:39:36 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-11 23:38:25 +0000
commit25b267bd5ca8606e6418c676be643dd012ac496e (patch)
treebd98cc4f642dd24c7bea30740db936f85e3de0b0
parentee731638933c0bd34dd4815347e570efe8084b3f (diff)
downloadchrome-ec-25b267bd5ca8606e6418c676be643dd012ac496e.tar.gz
Unify #! use in python scripts
Right now we have several different versions of #! in our python scripts. Unify them all and specify that we are using python2. Signed-off-by: Stefan Reinauer <reinauer@chromium.org> BUG=none BRANCH=none TEST=make buildall Change-Id: Iab33a3f5d4b827451a55542bcee8837b00da7867 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1817948 Commit-Queue: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> (cherry picked from commit 68c9a2870ead8a3306a2601c4f5689656d49c6a8) Change-Id: I55272c289eaeb24bbaa7024ece7beb4cb14ea9ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314108 Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org> Commit-Queue: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit a72597d3bfaed8a602e9db138da23d5fdb7f5e56) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2350270
-rwxr-xr-xchip/mec1322/util/pack_ec.py2
-rwxr-xr-xcts/cts.py3
-rwxr-xr-xextra/usb_power/powerlog.py2
-rwxr-xr-xextra/usb_serial/console.py2
-rwxr-xr-xextra/usb_spi/stm32spi.py2
-rwxr-xr-xextra/usb_updater/fw_update.py2
-rw-r--r--test/tpm_test/crypto_test.py2
-rw-r--r--test/tpm_test/ecc_test.py2
-rw-r--r--test/tpm_test/ecies_test.py2
-rw-r--r--test/tpm_test/genvectors.py2
-rw-r--r--test/tpm_test/hash_test.py2
-rw-r--r--test/tpm_test/hkdf_test.py2
-rw-r--r--test/tpm_test/rsa_test.py2
-rw-r--r--test/tpm_test/subcmd.py2
-rwxr-xr-xtest/tpm_test/tpmtest.py2
-rw-r--r--test/tpm_test/upgrade_test.py2
-rw-r--r--test/tpm_test/utils.py2
-rwxr-xr-xutil/config_option_check.py2
-rwxr-xr-xutil/ec3po/console.py2
-rwxr-xr-xutil/ec3po/console_unittest.py2
-rwxr-xr-xutil/ec3po/interpreter_unittest.py2
-rwxr-xr-xutil/flash_pd.py4
-rwxr-xr-xutil/inject-keys.py2
-rwxr-xr-xutil/run_host_test2
24 files changed, 26 insertions, 25 deletions
diff --git a/chip/mec1322/util/pack_ec.py b/chip/mec1322/util/pack_ec.py
index 7fed5a8008..77d541297b 100755
--- a/chip/mec1322/util/pack_ec.py
+++ b/chip/mec1322/util/pack_ec.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/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/cts/cts.py b/cts/cts.py
index 82955436c7..f6cf43df10 100755
--- a/cts/cts.py
+++ b/cts/cts.py
@@ -1,4 +1,5 @@
-#!/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
# found in the LICENSE file.
diff --git a/extra/usb_power/powerlog.py b/extra/usb_power/powerlog.py
index ebe95b8e26..3f99432119 100755
--- a/extra/usb_power/powerlog.py
+++ b/extra/usb_power/powerlog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/extra/usb_serial/console.py b/extra/usb_serial/console.py
index 36cd52c361..a8b9c830c5 100755
--- a/extra/usb_serial/console.py
+++ b/extra/usb_serial/console.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/extra/usb_spi/stm32spi.py b/extra/usb_spi/stm32spi.py
index ecd4edb8e9..a8948c0002 100755
--- a/extra/usb_spi/stm32spi.py
+++ b/extra/usb_spi/stm32spi.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
# found in the LICENSE file.
diff --git a/extra/usb_updater/fw_update.py b/extra/usb_updater/fw_update.py
index 73393c8fb2..eedfcfc166 100755
--- a/extra/usb_updater/fw_update.py
+++ b/extra/usb_updater/fw_update.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/crypto_test.py b/test/tpm_test/crypto_test.py
index 5790c1ee1c..36253952c5 100644
--- a/test/tpm_test/crypto_test.py
+++ b/test/tpm_test/crypto_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/test/tpm_test/ecc_test.py b/test/tpm_test/ecc_test.py
index 03991e0ec3..aebaa7c4b3 100644
--- a/test/tpm_test/ecc_test.py
+++ b/test/tpm_test/ecc_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/ecies_test.py b/test/tpm_test/ecies_test.py
index f6b3029ac3..96620c14b5 100644
--- a/test/tpm_test/ecies_test.py
+++ b/test/tpm_test/ecies_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/genvectors.py b/test/tpm_test/genvectors.py
index abab788efc..593a6aab71 100644
--- a/test/tpm_test/genvectors.py
+++ b/test/tpm_test/genvectors.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/hash_test.py b/test/tpm_test/hash_test.py
index 01702892ad..9f10894d2e 100644
--- a/test/tpm_test/hash_test.py
+++ b/test/tpm_test/hash_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/test/tpm_test/hkdf_test.py b/test/tpm_test/hkdf_test.py
index 5de0b3879a..3330d50105 100644
--- a/test/tpm_test/hkdf_test.py
+++ b/test/tpm_test/hkdf_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/rsa_test.py b/test/tpm_test/rsa_test.py
index b98d3306c5..e411df57b0 100644
--- a/test/tpm_test/rsa_test.py
+++ b/test/tpm_test/rsa_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/test/tpm_test/subcmd.py b/test/tpm_test/subcmd.py
index 5ad56c8b60..7260df0dd5 100644
--- a/test/tpm_test/subcmd.py
+++ b/test/tpm_test/subcmd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/test/tpm_test/tpmtest.py b/test/tpm_test/tpmtest.py
index 5e981243b9..11218cbcc6 100755
--- a/test/tpm_test/tpmtest.py
+++ b/test/tpm_test/tpmtest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/test/tpm_test/upgrade_test.py b/test/tpm_test/upgrade_test.py
index 69e8630358..35f8405ba7 100644
--- a/test/tpm_test/upgrade_test.py
+++ b/test/tpm_test/upgrade_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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
# found in the LICENSE file.
diff --git a/test/tpm_test/utils.py b/test/tpm_test/utils.py
index 233a97eeff..38cda2a1e2 100644
--- a/test/tpm_test/utils.py
+++ b/test/tpm_test/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/util/config_option_check.py b/util/config_option_check.py
index 95bb72a1f6..46b0c5b922 100755
--- a/util/config_option_check.py
+++ b/util/config_option_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/util/ec3po/console.py b/util/ec3po/console.py
index e5f888af0e..8f521f9027 100755
--- a/util/ec3po/console.py
+++ b/util/ec3po/console.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py
index 768417df8f..2a6dd8e44e 100755
--- a/util/ec3po/console_unittest.py
+++ b/util/ec3po/console_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/util/ec3po/interpreter_unittest.py b/util/ec3po/interpreter_unittest.py
index 6eb6b3abda..93b48bdef6 100755
--- a/util/ec3po/interpreter_unittest.py
+++ b/util/ec3po/interpreter_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/util/flash_pd.py b/util/flash_pd.py
index bc9eab1996..f39af7f06d 100755
--- a/util/flash_pd.py
+++ b/util/flash_pd.py
@@ -1,5 +1,5 @@
-#!/usr/bin/env python
-# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+#!/usr/bin/env python2
+# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Flash PD PSU RW firmware over the USBPD comm channel using console.
diff --git a/util/inject-keys.py b/util/inject-keys.py
index ef87bb14b6..380fc34729 100755
--- a/util/inject-keys.py
+++ b/util/inject-keys.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright 2016 The Chromium OS Authors. All rights reserved.
diff --git a/util/run_host_test b/util/run_host_test
index c130b822fb..0336617815 100755
--- a/util/run_host_test
+++ b/util/run_host_test
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/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