Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: gyptest.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gyptest.py
diff --git a/gyptest.py b/gyptest.py
index 8e4fc47d5c804b910bdea078b0e696a5189887db..a541517dcd1881875d5b33fe3df22ec910bd0bdf 100755
--- a/gyptest.py
+++ b/gyptest.py
@@ -4,6 +4,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from __future__ import print_function
+
__doc__ = """
gyptest.py -- test runner for GYP tests.
"""
@@ -190,13 +192,13 @@ def main(argv=None):
tests.extend(find_all_gyptest_files(os.path.normpath(arg)))
else:
if not is_test_name(os.path.basename(arg)):
- print >>sys.stderr, arg, 'is not a valid gyp test name.'
+ print(arg, 'is not a valid gyp test name.', file=sys.stderr)
sys.exit(1)
tests.append(arg)
if opts.list:
for test in tests:
- print test
+ print(test)
sys.exit(0)
CommandRunner.verbose = not opts.quiet
@@ -222,6 +224,7 @@ def main(argv=None):
'openbsd5': ['make'],
'cygwin': ['msvs'],
'win32': ['msvs', 'ninja'],
+ 'linux': ['make', 'ninja'],
'linux2': ['make', 'ninja'],
'linux3': ['make', 'ninja'],
'darwin': ['make', 'ninja', 'xcode', 'xcode-ninja'],
« no previous file with comments | « buildbot/buildbot_run.py ('k') | pylib/gyp/MSVSNew.py » ('j') | pylib/gyp/MSVSNew.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698