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

Unified Diff: tests/gclient_test.py

Issue 11274037: Improve the test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | 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 5481dbdf1103a75141285599079dbe7c1b4eaca0..20c9ca627aa3373af938a73c2c9264b350cb0069 100755
--- a/tests/gclient_test.py
+++ b/tests/gclient_test.py
@@ -321,6 +321,9 @@ class GclientTest(trial_dir.TestCase):
'solutions = [\n'
' { "name": "foo",\n'
' "url": "svn://example.com/foo",\n'
+ ' },\n'
+ ' { "name": "bar",\n'
+ ' "url": "svn://example.com/bar",\n'
' }]\n')
write(
os.path.join('foo', 'DEPS'),
@@ -330,6 +333,13 @@ class GclientTest(trial_dir.TestCase):
' "baz": { "foo/baz": "/baz", },\n'
' "jaz": { "foo/jaz": "/jaz", },\n'
'}')
+ write(
+ os.path.join('bar', 'DEPS'),
+ 'deps_os = {\n'
+ ' "unix": { "bar/unix": "/unix", },\n'
+ ' "baz": { "bar/baz": "/baz", },\n'
+ ' "jaz": { "bar/jaz": "/jaz", },\n'
+ '}')
parser = gclient.Parser()
options, _ = parser.parse_args(['--jobs', '1'])
@@ -340,6 +350,8 @@ class GclientTest(trial_dir.TestCase):
self.assertEqual(['unix'], sorted(obj.enforced_os))
self.assertEquals(
[
+ 'svn://example.com/bar',
+ 'svn://example.com/bar/unix',
'svn://example.com/foo',
'svn://example.com/foo/baz',
'svn://example.com/foo/unix',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698