[autotest] change python shebang to python2
Make sure all these scripts run as Python 2 since there is no support
for Python 3 in this code base. This allows us to change the default
`python` to Python 3.
BUG=chromium:990593
TEST=CQ passes
Exempt-From-Owner-Approval: everyone has chimed in
Change-Id: I05321d92696f4550ced0741ead5023c8ec43c1e7
Reviewed-on: https://chromium-review.googlesource.com/1734588
Tested-by: Mike Frysinger <[email protected]>
Commit-Ready: ChromeOS CL Exonerator Bot <[email protected]>
Legacy-Commit-Queue: Commit Bot <[email protected]>
Reviewed-by: Vadim Bendebury <[email protected]>
Reviewed-by: Allen Li <[email protected]>
diff --git a/server/hosts/base_classes_unittest.py b/server/hosts/base_classes_unittest.py
index 14367a9..2a9f787 100755
--- a/server/hosts/base_classes_unittest.py
+++ b/server/hosts/base_classes_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# pylint: disable=missing-docstring
import unittest
diff --git a/server/hosts/base_label_unittest.py b/server/hosts/base_label_unittest.py
index 0e30cd0..975b792 100755
--- a/server/hosts/base_label_unittest.py
+++ b/server/hosts/base_label_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/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/server/hosts/cros_host_unittest.py b/server/hosts/cros_host_unittest.py
index e23cca7..26b85b4 100755
--- a/server/hosts/cros_host_unittest.py
+++ b/server/hosts/cros_host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# pylint: disable=missing-docstring
import unittest
diff --git a/server/hosts/cros_label_unittest.py b/server/hosts/cros_label_unittest.py
index e8e3376..cc92579 100755
--- a/server/hosts/cros_label_unittest.py
+++ b/server/hosts/cros_label_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2017 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/server/hosts/cros_repair_unittest.py b/server/hosts/cros_repair_unittest.py
index 0561042..df6142c 100755
--- a/server/hosts/cros_repair_unittest.py
+++ b/server/hosts/cros_repair_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright 2017 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/server/hosts/factory_unittest.py b/server/hosts/factory_unittest.py
index f63053c..3f62aae 100755
--- a/server/hosts/factory_unittest.py
+++ b/server/hosts/factory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/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/server/hosts/jetstream_host_unittest.py b/server/hosts/jetstream_host_unittest.py
index 72032dc..d5f4021 100755
--- a/server/hosts/jetstream_host_unittest.py
+++ b/server/hosts/jetstream_host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2017 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/server/hosts/remote_unittest.py b/server/hosts/remote_unittest.py
index b1f5c9c..cc61fdc 100755
--- a/server/hosts/remote_unittest.py
+++ b/server/hosts/remote_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import unittest
import common
diff --git a/server/hosts/servo_afe_board_map_unittest.py b/server/hosts/servo_afe_board_map_unittest.py
index d843faa..7811124 100755
--- a/server/hosts/servo_afe_board_map_unittest.py
+++ b/server/hosts/servo_afe_board_map_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/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
diff --git a/server/hosts/ssh_multiplex_unittest.py b/server/hosts/ssh_multiplex_unittest.py
index d19d6c4..2cfe29e 100755
--- a/server/hosts/ssh_multiplex_unittest.py
+++ b/server/hosts/ssh_multiplex_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/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.