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

Unified Diff: tests/gclient_test.py

Issue 20131006: Revert "Improve description layout. Improve coloring and add legend in help." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 5 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
« no previous file with comments | « git_cl.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_test.py
diff --git a/tests/gclient_test.py b/tests/gclient_test.py
index 73353dbc51c1dca0c604515c39d3f19f29368016..822a35c795fdeb318b242dfe969b5e92ce6c9842 100755
--- a/tests/gclient_test.py
+++ b/tests/gclient_test.py
@@ -86,7 +86,7 @@ class GclientTest(trial_dir.TestCase):
Args:
|jobs| is the number of parallel jobs simulated.
"""
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, args = parser.parse_args(['--jobs', jobs])
write(
'.gclient',
@@ -213,7 +213,7 @@ class GclientTest(trial_dir.TestCase):
self.assertEquals('proto://host/path@revision', d.url)
def testStr(self):
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args([])
obj = gclient.GClient('foo', options)
obj.add_dependencies_and_close(
@@ -265,7 +265,7 @@ class GclientTest(trial_dir.TestCase):
os.chdir(topdir)
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args([])
options.force = True
client = gclient.GClient.LoadCurrentConfig(options)
@@ -314,7 +314,7 @@ class GclientTest(trial_dir.TestCase):
os.chdir(topdir)
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args([])
options.force = True
client = gclient.GClient.LoadCurrentConfig(options)
@@ -350,7 +350,7 @@ class GclientTest(trial_dir.TestCase):
' "baz": { "foo/dir3": "/dir3", },\n'
'}')
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
options.deps_os = "unix"
@@ -385,7 +385,7 @@ class GclientTest(trial_dir.TestCase):
' "baz": { "foo/dir3": "/dir3", },\n'
'}')
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
options.deps_os = "unix"
@@ -413,7 +413,7 @@ class GclientTest(trial_dir.TestCase):
' "unix": { "foo/dir2": "/dir2", },\n'
'}')
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
options.deps_os = "unix"
@@ -458,7 +458,7 @@ class GclientTest(trial_dir.TestCase):
' "jaz": { "bar/jaz": "/jaz", },\n'
'}')
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
options.deps_os = 'unix'
@@ -499,7 +499,7 @@ class GclientTest(trial_dir.TestCase):
' "jaz": { "foo/jaz": "/jaz", },\n'
'}')
- parser = gclient.OptionParser()
+ parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
options.deps_os = 'unix'
@@ -552,7 +552,7 @@ class GclientTest(trial_dir.TestCase):
' "fuzz": "/fuzz",\n'
'}')
- options, _ = gclient.OptionParser().parse_args([])
+ options, _ = gclient.Parser().parse_args([])
obj = gclient.GClient.LoadCurrentConfig(options)
obj.RunOnDeps('None', [])
self.assertEquals(
« no previous file with comments | « git_cl.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698