From 91668b7007c24a24767bba89237e1cab3e54eb65 Mon Sep 17 00:00:00 2001 From: "sivachandra@chromium.org" Date: Thu, 25 Oct 2012 00:50:10 +0000 Subject: [PATCH] Improve the test. BUG=155792 Review URL: https://chromiumcodereview.appspot.com/11274037 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@163975 0039d316-1c4b-4281-b951-d872f2087c98 --- tests/gclient_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/gclient_test.py b/tests/gclient_test.py index 5481dbdf11..20c9ca627a 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',