[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 <vapier@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/contrib/always_failing_tests.py b/contrib/always_failing_tests.py
index 32981a1..e883807 100755
--- a/contrib/always_failing_tests.py
+++ b/contrib/always_failing_tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
This script prints out a csv file of `suite,test,path/to/control.file` where
diff --git a/contrib/coverage.py b/contrib/coverage.py
index 9b2bf67..c00ce2a 100755
--- a/contrib/coverage.py
+++ b/contrib/coverage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Perforce Defect Tracking Integration Project
# <http://www.ravenbrook.com/project/p4dti/>
diff --git a/contrib/db_cleanup.py b/contrib/db_cleanup.py
index 055cdc7..c2f9510 100755
--- a/contrib/db_cleanup.py
+++ b/contrib/db_cleanup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Copyright (c) 2012 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/contrib/db_optimize.py b/contrib/db_optimize.py
index 10dc9d8..6b4dce2 100755
--- a/contrib/db_optimize.py
+++ b/contrib/db_optimize.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/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
# found in the LICENSE file.
diff --git a/contrib/dhcp_failed_machines.py b/contrib/dhcp_failed_machines.py
index 6192112..a44fd2e 100755
--- a/contrib/dhcp_failed_machines.py
+++ b/contrib/dhcp_failed_machines.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
"""
usage:
diff --git a/contrib/find_suite_tasks.py b/contrib/find_suite_tasks.py
index f5f13c8..8ad3506 100755
--- a/contrib/find_suite_tasks.py
+++ b/contrib/find_suite_tasks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import common
import json
diff --git a/contrib/log_distiller.py b/contrib/log_distiller.py
index f44b132..6122a45 100755
--- a/contrib/log_distiller.py
+++ b/contrib/log_distiller.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
"""
Usage: ./cron_scripts/log_distiller.py job_id path_to_logfile
If the job_id is a suite it will find all subjobs.
diff --git a/contrib/modelviz.py b/contrib/modelviz.py
index 689a363..6126475 100755
--- a/contrib/modelviz.py
+++ b/contrib/modelviz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""Django model to DOT (Graphviz) converter
by Antonio Cavedoni <antonio@cavedoni.org>
diff --git a/contrib/print_host_labels.py b/contrib/print_host_labels.py
index a595751..04d32cb 100755
--- a/contrib/print_host_labels.py
+++ b/contrib/print_host_labels.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
Usage: ./print_host_labels.py <IP.or.hostname>
diff --git a/contrib/repair_hosts b/contrib/repair_hosts
index ee3717e..e7dd435 100755
--- a/contrib/repair_hosts
+++ b/contrib/repair_hosts
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Simple utility to trigger a Repair job on a bunch of hosts.
#
# CAVEAT: no error checking; if any argument isn't a valid
diff --git a/contrib/repair_hosts_throttled.py b/contrib/repair_hosts_throttled.py
index 697bb25..37caad1 100755
--- a/contrib/repair_hosts_throttled.py
+++ b/contrib/repair_hosts_throttled.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Takes a list of hostnames (via file) and schedules host repair
# jobs based on the delay specified in order to throttle the jobs
# and not overwhelm the system.
diff --git a/contrib/reverify_hosts b/contrib/reverify_hosts
index 8d31ac1..da449bf 100755
--- a/contrib/reverify_hosts
+++ b/contrib/reverify_hosts
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Simple utility to trigger a Verify job on a bunch of hosts.
#
# CAVEAT: no error checking; if any argument isn't a valid
diff --git a/contrib/shared_hosts.py b/contrib/shared_hosts.py
index 199e083..b45d3c8 100755
--- a/contrib/shared_hosts.py
+++ b/contrib/shared_hosts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
"""
Finds hosts that are shared between both cautotest and cautotest-cq.