Skip to content

Commit

Permalink
Change shebang line in WebKit/Tools/Scripts/* to use vpython.
Browse files Browse the repository at this point in the history
By adding vpython to the shebang line of scripts in
//third_party/WebKit/Tools/Scripts/.

The purpose of this change would be to ensure that these scripts don't
rely on packages in PYTHONPATH that may be present in some systems but
not others.

However, this does mean that we're assuming that depot_tools is
in PATH, or this is running on a bot that supplies vpython.

Related CL: https://crrev.com/c/508124

Bug: 670994
Change-Id: Id22fd75cfa0f6c174d2b207a4d6c15fbda9dd6cf
Reviewed-on: https://chromium-review.googlesource.com/513403
Commit-Queue: Quinten Yearsley <qyearsley@chromium.org>
Reviewed-by: Daniel Jacques <dnj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#474674}
  • Loading branch information
Quinten Yearsley authored and Commit Bot committed May 25, 2017
1 parent a795597 commit 72800e4
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/bisect-test-ordering
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
#
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/check-webkit-style
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
#
# Copyright (C) 2011 Google Inc. All rights reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/format-webkitpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/lint-test-expectations
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/lint-webkitpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (c) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/merge-layout-test-results
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
#
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/print-json-test-results
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
import json
import optparse
import os
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/print-layout-test-times
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
#
# Copyright (C) 2013 Google Inc. All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/print-layout-test-types
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
#
# Copyright (C) 2013 Google Inc. All rights reserved.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
#
# Copyright (C) 2013 Google Inc. All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/print-test-ordering
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython

# Copyright (C) 2012 Google Inc. All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/read-checksum-from-png
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (c) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-bindings-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-blink-httpd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-blink-websocketserver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-blink-wptserve
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-inspector-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-perf-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/run-webkit-tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/test-webkitpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (c) 2011 Google Inc. All rights reserved.
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/update-flaky-expectations
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
#
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/webkit-patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright (c) 2011 Code Aurora Forum. All rights reserved.
# Copyright (c) 2010 Google Inc. All rights reserved.
# Copyright (c) 2009 Apple Inc. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/wpt-export
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/wpt-import
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env vpython
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion third_party/WebKit/Tools/Scripts/wpt-update-expectations
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env vpython
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down

0 comments on commit 72800e4

Please sign in to comment.