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', |