|
|
|
|
@ -725,70 +725,70 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
self.assertEqual([
|
|
|
|
|
'gclient_gn_args_file = "src/repo2/gclient.args"',
|
|
|
|
|
'gclient_gn_args = [\'false_var\', \'false_str_var\', \'true_var\', '
|
|
|
|
|
'\'true_str_var\', \'str_var\', \'cond_var\']',
|
|
|
|
|
'\'true_str_var\', \'str_var\', \'cond_var\']',
|
|
|
|
|
'allowed_hosts = [',
|
|
|
|
|
' "' + self.git_base + '",',
|
|
|
|
|
']',
|
|
|
|
|
'',
|
|
|
|
|
'deps = {',
|
|
|
|
|
' # src -> src/repo2 -> foo/bar',
|
|
|
|
|
' # "src" -> "src/repo2" -> "foo/bar"',
|
|
|
|
|
' "foo/bar": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_3",',
|
|
|
|
|
' "condition": \'(repo2_false_var) and (true_str_var)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "src": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_6",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/mac_repo',
|
|
|
|
|
' # "src" -> "src/mac_repo"',
|
|
|
|
|
' "src/mac_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5",',
|
|
|
|
|
' "condition": \'checkout_mac\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo8 -> src/recursed_os_repo',
|
|
|
|
|
' # "src" -> "src/repo8" -> "src/recursed_os_repo"',
|
|
|
|
|
' "src/recursed_os_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5",',
|
|
|
|
|
' "condition": \'(checkout_linux) or (checkout_mac)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo15',
|
|
|
|
|
' # "src" -> "src/repo15"',
|
|
|
|
|
' "src/repo15": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_15",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo16',
|
|
|
|
|
' # "src" -> "src/repo16"',
|
|
|
|
|
' "src/repo16": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_16",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo2',
|
|
|
|
|
' # "src" -> "src/repo2"',
|
|
|
|
|
' "src/repo2": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_2@%s",' % (
|
|
|
|
|
self.githash('repo_2', 1)[:7]),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_2@%s",' %
|
|
|
|
|
(self.githash('repo_2', 1)[:7]),
|
|
|
|
|
' "condition": \'true_str_var\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo4',
|
|
|
|
|
' # "src" -> "src/repo4"',
|
|
|
|
|
' "src/repo4": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_4",',
|
|
|
|
|
' "condition": \'False\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo8',
|
|
|
|
|
' # "src" -> "src/repo8"',
|
|
|
|
|
' "src/repo8": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_8",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/unix_repo',
|
|
|
|
|
' # "src" -> "src/unix_repo"',
|
|
|
|
|
' "src/unix_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5",',
|
|
|
|
|
' "condition": \'checkout_linux\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/win_repo',
|
|
|
|
|
' # "src" -> "src/win_repo"',
|
|
|
|
|
' "src/win_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5",',
|
|
|
|
|
' "condition": \'checkout_win\',',
|
|
|
|
|
@ -797,7 +797,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
'}',
|
|
|
|
|
'',
|
|
|
|
|
'hooks = [',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
' "condition": \'True\',',
|
|
|
|
|
@ -806,11 +806,11 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "python",',
|
|
|
|
|
' "-c",',
|
|
|
|
|
' "open(\'src/git_hooked1\', \'w\')'
|
|
|
|
|
'.write(\'git_hooked1\')",',
|
|
|
|
|
'.write(\'git_hooked1\')",',
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": "nonexistent",',
|
|
|
|
|
' "cwd": ".",',
|
|
|
|
|
@ -821,7 +821,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
' "condition": \'checkout_mac\',',
|
|
|
|
|
@ -830,11 +830,11 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "python",',
|
|
|
|
|
' "-c",',
|
|
|
|
|
' "open(\'src/git_hooked_mac\', \'w\').write('
|
|
|
|
|
'\'git_hooked_mac\')",',
|
|
|
|
|
'\'git_hooked_mac\')",',
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo15',
|
|
|
|
|
' # "src" -> "src/repo15"',
|
|
|
|
|
' {',
|
|
|
|
|
' "name": "absolute_cwd",',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
@ -846,7 +846,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo16',
|
|
|
|
|
' # "src" -> "src/repo16"',
|
|
|
|
|
' {',
|
|
|
|
|
' "name": "relative_cwd",',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
@ -860,45 +860,45 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
']',
|
|
|
|
|
'',
|
|
|
|
|
'vars = {',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "DummyVariable": \'repo\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "cond_var": \'false_str_var and true_var\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "false_str_var": \'False\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "false_var": False,',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "git_base": \'' + self.git_base + '\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "hook1_contents": \'git_hooked1\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo2',
|
|
|
|
|
' # "src" -> "src/repo2"',
|
|
|
|
|
' "repo2_false_var": \'False\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "repo5_var": \'/repo_5\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "str_var": \'abc\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "true_str_var": \'True\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src [custom_var override]',
|
|
|
|
|
' # "src" [custom_var override]',
|
|
|
|
|
' "true_var": \'False\',',
|
|
|
|
|
'',
|
|
|
|
|
'}',
|
|
|
|
|
'',
|
|
|
|
|
'# ' + self.git_base + 'repo_15, DEPS',
|
|
|
|
|
'# ' + self.git_base + 'repo_16, DEPS',
|
|
|
|
|
'# ' + self.git_base + 'repo_2@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_2', 1)[:7]),
|
|
|
|
|
'# ' + self.git_base + 'repo_2@%s, DEPS' %
|
|
|
|
|
(self.githash('repo_2', 1)[:7]),
|
|
|
|
|
'# ' + self.git_base + 'repo_6, DEPS',
|
|
|
|
|
'# ' + self.git_base + 'repo_8, DEPS',
|
|
|
|
|
], deps_contents.splitlines())
|
|
|
|
|
@ -920,89 +920,89 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
self.assertEqual([
|
|
|
|
|
'gclient_gn_args_file = "src/repo2/gclient.args"',
|
|
|
|
|
'gclient_gn_args = [\'false_var\', \'false_str_var\', \'true_var\', '
|
|
|
|
|
'\'true_str_var\', \'str_var\', \'cond_var\']',
|
|
|
|
|
'\'true_str_var\', \'str_var\', \'cond_var\']',
|
|
|
|
|
'allowed_hosts = [',
|
|
|
|
|
' "' + self.git_base + '",',
|
|
|
|
|
']',
|
|
|
|
|
'',
|
|
|
|
|
'deps = {',
|
|
|
|
|
' # src -> src/repo2 -> foo/bar',
|
|
|
|
|
' # "src" -> "src/repo2" -> "foo/bar"',
|
|
|
|
|
' "foo/bar": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_3@%s",' % (
|
|
|
|
|
self.githash('repo_3', 2)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_3@%s",' %
|
|
|
|
|
(self.githash('repo_3', 2)),
|
|
|
|
|
' "condition": \'(repo2_false_var) and (true_str_var)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "src": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_6@%s",' % (
|
|
|
|
|
self.githash('repo_6', 1)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_6@%s",' %
|
|
|
|
|
(self.githash('repo_6', 1)),
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/mac_repo',
|
|
|
|
|
' # "src" -> "src/mac_repo"',
|
|
|
|
|
' "src/mac_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' % (
|
|
|
|
|
self.githash('repo_5', 3)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' %
|
|
|
|
|
(self.githash('repo_5', 3)),
|
|
|
|
|
' "condition": \'checkout_mac\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo8 -> src/recursed_os_repo',
|
|
|
|
|
' # "src" -> "src/repo8" -> "src/recursed_os_repo"',
|
|
|
|
|
' "src/recursed_os_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' % (
|
|
|
|
|
self.githash('repo_5', 3)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' %
|
|
|
|
|
(self.githash('repo_5', 3)),
|
|
|
|
|
' "condition": \'(checkout_linux) or (checkout_mac)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo15',
|
|
|
|
|
' # "src" -> "src/repo15"',
|
|
|
|
|
' "src/repo15": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_15@%s",' % (
|
|
|
|
|
self.githash('repo_15', 1)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_15@%s",' %
|
|
|
|
|
(self.githash('repo_15', 1)),
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo16',
|
|
|
|
|
' # "src" -> "src/repo16"',
|
|
|
|
|
' "src/repo16": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_16@%s",' % (
|
|
|
|
|
self.githash('repo_16', 1)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_16@%s",' %
|
|
|
|
|
(self.githash('repo_16', 1)),
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo2',
|
|
|
|
|
' # "src" -> "src/repo2"',
|
|
|
|
|
' "src/repo2": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_2@%s",' % (
|
|
|
|
|
self.githash('repo_2', 1)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_2@%s",' %
|
|
|
|
|
(self.githash('repo_2', 1)),
|
|
|
|
|
' "condition": \'true_str_var\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo4',
|
|
|
|
|
' # "src" -> "src/repo4"',
|
|
|
|
|
' "src/repo4": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_4@%s",' % (
|
|
|
|
|
self.githash('repo_4', 2)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_4@%s",' %
|
|
|
|
|
(self.githash('repo_4', 2)),
|
|
|
|
|
' "condition": \'False\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo8',
|
|
|
|
|
' # "src" -> "src/repo8"',
|
|
|
|
|
' "src/repo8": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_8@%s",' % (
|
|
|
|
|
self.githash('repo_8', 1)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_8@%s",' %
|
|
|
|
|
(self.githash('repo_8', 1)),
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/unix_repo',
|
|
|
|
|
' # "src" -> "src/unix_repo"',
|
|
|
|
|
' "src/unix_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' % (
|
|
|
|
|
self.githash('repo_5', 3)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' %
|
|
|
|
|
(self.githash('repo_5', 3)),
|
|
|
|
|
' "condition": \'checkout_linux\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/win_repo',
|
|
|
|
|
' # "src" -> "src/win_repo"',
|
|
|
|
|
' "src/win_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' % (
|
|
|
|
|
self.githash('repo_5', 3)),
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5@%s",' %
|
|
|
|
|
(self.githash('repo_5', 3)),
|
|
|
|
|
' "condition": \'checkout_win\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
'}',
|
|
|
|
|
'',
|
|
|
|
|
'hooks = [',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
' "condition": \'True\',',
|
|
|
|
|
@ -1011,11 +1011,11 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "python",',
|
|
|
|
|
' "-c",',
|
|
|
|
|
' "open(\'src/git_hooked1\', \'w\')'
|
|
|
|
|
'.write(\'git_hooked1\')",',
|
|
|
|
|
'.write(\'git_hooked1\')",',
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": "nonexistent",',
|
|
|
|
|
' "cwd": ".",',
|
|
|
|
|
@ -1026,7 +1026,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' {',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
' "condition": \'checkout_mac\',',
|
|
|
|
|
@ -1035,11 +1035,11 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "python",',
|
|
|
|
|
' "-c",',
|
|
|
|
|
' "open(\'src/git_hooked_mac\', \'w\').write('
|
|
|
|
|
'\'git_hooked_mac\')",',
|
|
|
|
|
'\'git_hooked_mac\')",',
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo15',
|
|
|
|
|
' # "src" -> "src/repo15"',
|
|
|
|
|
' {',
|
|
|
|
|
' "name": "absolute_cwd",',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
@ -1051,7 +1051,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' ]',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo16',
|
|
|
|
|
' # "src" -> "src/repo16"',
|
|
|
|
|
' {',
|
|
|
|
|
' "name": "relative_cwd",',
|
|
|
|
|
' "pattern": ".",',
|
|
|
|
|
@ -1065,51 +1065,48 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
']',
|
|
|
|
|
'',
|
|
|
|
|
'vars = {',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "DummyVariable": \'repo\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "cond_var": \'false_str_var and true_var\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "false_str_var": \'False\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "false_var": False,',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "git_base": \'' + self.git_base + '\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "hook1_contents": \'git_hooked1\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo2',
|
|
|
|
|
' # "src" -> "src/repo2"',
|
|
|
|
|
' "repo2_false_var": \'False\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "repo5_var": \'/repo_5\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "str_var": \'abc\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "true_str_var": \'True\',',
|
|
|
|
|
'',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "true_var": True,',
|
|
|
|
|
'',
|
|
|
|
|
'}',
|
|
|
|
|
'',
|
|
|
|
|
'# ' + self.git_base + 'repo_15@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_15', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_16@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_16', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_2@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_2', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_6@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_6', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_8@%s, DEPS' % (
|
|
|
|
|
self.githash('repo_8', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_15@%s, DEPS' %
|
|
|
|
|
(self.githash('repo_15', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_16@%s, DEPS' %
|
|
|
|
|
(self.githash('repo_16', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_2@%s, DEPS' % (self.githash('repo_2', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_6@%s, DEPS' % (self.githash('repo_6', 1)),
|
|
|
|
|
'# ' + self.git_base + 'repo_8@%s, DEPS' % (self.githash('repo_8', 1)),
|
|
|
|
|
], deps_contents.splitlines())
|
|
|
|
|
|
|
|
|
|
# TODO(crbug.com/1024683): Enable for windows.
|
|
|
|
|
@ -1134,51 +1131,51 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
'gclient_gn_args_file = "src/repo8/gclient.args"',
|
|
|
|
|
"gclient_gn_args = ['str_var']",
|
|
|
|
|
'deps = {',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "src": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_10",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo9 -> src/repo8 -> src/recursed_os_repo',
|
|
|
|
|
' # "src" -> "src/repo9" -> "src/repo8" -> "src/recursed_os_repo"',
|
|
|
|
|
' "src/recursed_os_repo": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_5",',
|
|
|
|
|
' "condition": \'(checkout_linux) or (checkout_mac)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo11',
|
|
|
|
|
' # "src" -> "src/repo11"',
|
|
|
|
|
' "src/repo11": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_11",',
|
|
|
|
|
' "condition": \'(checkout_ios) or (checkout_mac)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo11 -> src/repo12',
|
|
|
|
|
' # "src" -> "src/repo11" -> "src/repo12"',
|
|
|
|
|
' "src/repo12": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_12",',
|
|
|
|
|
' "condition": \'(checkout_ios) or (checkout_mac)\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo9 -> src/repo4',
|
|
|
|
|
' # "src" -> "src/repo9" -> "src/repo4"',
|
|
|
|
|
' "src/repo4": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_4",',
|
|
|
|
|
' "condition": \'checkout_android\',',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo6',
|
|
|
|
|
' # "src" -> "src/repo6"',
|
|
|
|
|
' "src/repo6": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_6",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo9 -> src/repo7',
|
|
|
|
|
' # "src" -> "src/repo9" -> "src/repo7"',
|
|
|
|
|
' "src/repo7": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_7",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo9 -> src/repo8',
|
|
|
|
|
' # "src" -> "src/repo9" -> "src/repo8"',
|
|
|
|
|
' "src/repo8": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_8",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/repo9',
|
|
|
|
|
' # "src" -> "src/repo9"',
|
|
|
|
|
' "src/repo9": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_9",',
|
|
|
|
|
' },',
|
|
|
|
|
@ -1186,7 +1183,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
'}',
|
|
|
|
|
'',
|
|
|
|
|
'vars = {',
|
|
|
|
|
' # src -> src/repo9',
|
|
|
|
|
' # "src" -> "src/repo9"',
|
|
|
|
|
' "str_var": \'xyz\',',
|
|
|
|
|
'',
|
|
|
|
|
'}',
|
|
|
|
|
@ -1230,12 +1227,12 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
|
|
|
|
|
self.assertEqual([
|
|
|
|
|
'deps = {',
|
|
|
|
|
' # src',
|
|
|
|
|
' # "src"',
|
|
|
|
|
' "src": {',
|
|
|
|
|
' "url": "' + self.git_base + 'repo_14",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/another_cipd_dep',
|
|
|
|
|
' # "src" -> src/another_cipd_dep',
|
|
|
|
|
' "src/another_cipd_dep": {',
|
|
|
|
|
' "packages": [',
|
|
|
|
|
' {',
|
|
|
|
|
@ -1250,7 +1247,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "dep_type": "cipd",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/cipd_dep',
|
|
|
|
|
' # "src" -> src/cipd_dep',
|
|
|
|
|
' "src/cipd_dep": {',
|
|
|
|
|
' "packages": [',
|
|
|
|
|
' {',
|
|
|
|
|
@ -1261,7 +1258,7 @@ class GClientSmokeGIT(gclient_smoketest_base.GClientSmokeBase):
|
|
|
|
|
' "dep_type": "cipd",',
|
|
|
|
|
' },',
|
|
|
|
|
'',
|
|
|
|
|
' # src -> src/cipd_dep_with_cipd_variable',
|
|
|
|
|
' # "src" -> src/cipd_dep_with_cipd_variable',
|
|
|
|
|
' "src/cipd_dep_with_cipd_variable": {',
|
|
|
|
|
' "packages": [',
|
|
|
|
|
' {',
|
|
|
|
|
|