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

Side by Side Diff: tools/push-to-trunk/test_scripts.py

Issue 585893002: Refactoring: Use fake cwd in release script tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove git location legacy. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/push-to-trunk/releases.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 the V8 project authors. All rights reserved. 2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 import releases 49 import releases
50 from releases import Releases 50 from releases import Releases
51 import bump_up_version 51 import bump_up_version
52 from bump_up_version import BumpUpVersion 52 from bump_up_version import BumpUpVersion
53 from bump_up_version import LastChangeBailout 53 from bump_up_version import LastChangeBailout
54 from bump_up_version import LKGRVersionUpToDateBailout 54 from bump_up_version import LKGRVersionUpToDateBailout
55 from auto_tag import AutoTag 55 from auto_tag import AutoTag
56 56
57 57
58 TEST_CONFIG = { 58 TEST_CONFIG = {
59 "DEFAULT_CWD": "[DEFAULT_CWD]", 59 "DEFAULT_CWD": None,
60 BRANCHNAME: "test-prepare-push", 60 BRANCHNAME: "test-prepare-push",
61 TRUNKBRANCH: "test-trunk-push", 61 TRUNKBRANCH: "test-trunk-push",
62 PERSISTFILE_BASENAME: "/tmp/test-v8-push-to-trunk-tempfile", 62 PERSISTFILE_BASENAME: "/tmp/test-v8-push-to-trunk-tempfile",
63 DOT_GIT_LOCATION: None,
64 VERSION_FILE: None, 63 VERSION_FILE: None,
65 CHANGELOG_FILE: None, 64 CHANGELOG_FILE: None,
66 CHANGELOG_ENTRY_FILE: "/tmp/test-v8-push-to-trunk-tempfile-changelog-entry", 65 CHANGELOG_ENTRY_FILE: "/tmp/test-v8-push-to-trunk-tempfile-changelog-entry",
67 PATCH_FILE: "/tmp/test-v8-push-to-trunk-tempfile-patch", 66 PATCH_FILE: "/tmp/test-v8-push-to-trunk-tempfile-patch",
68 COMMITMSG_FILE: "/tmp/test-v8-push-to-trunk-tempfile-commitmsg", 67 COMMITMSG_FILE: "/tmp/test-v8-push-to-trunk-tempfile-commitmsg",
69 CHROMIUM: "/tmp/test-v8-push-to-trunk-tempfile-chromium", 68 CHROMIUM: "/tmp/test-v8-push-to-trunk-tempfile-chromium",
70 SETTINGS_LOCATION: None, 69 SETTINGS_LOCATION: None,
71 ALREADY_MERGING_SENTINEL_FILE: 70 ALREADY_MERGING_SENTINEL_FILE:
72 "/tmp/test-merge-to-branch-tempfile-already-merging", 71 "/tmp/test-merge-to-branch-tempfile-already-merging",
73 COMMIT_HASHES_FILE: "/tmp/test-merge-to-branch-tempfile-PATCH_COMMIT_HASHES", 72 COMMIT_HASHES_FILE: "/tmp/test-merge-to-branch-tempfile-PATCH_COMMIT_HASHES",
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 "BUG=1234567890\n")) 251 "BUG=1234567890\n"))
253 252
254 253
255 def Cmd(*args, **kwargs): 254 def Cmd(*args, **kwargs):
256 """Convenience function returning a shell command test expectation.""" 255 """Convenience function returning a shell command test expectation."""
257 return { 256 return {
258 "name": "command", 257 "name": "command",
259 "args": args, 258 "args": args,
260 "ret": args[-1], 259 "ret": args[-1],
261 "cb": kwargs.get("cb"), 260 "cb": kwargs.get("cb"),
262 "cwd": kwargs.get("cwd", "[DEFAULT_CWD]"), 261 "cwd": kwargs.get("cwd", TEST_CONFIG["DEFAULT_CWD"]),
263 } 262 }
264 263
265 264
266 def RL(text, cb=None): 265 def RL(text, cb=None):
267 """Convenience function returning a readline test expectation.""" 266 """Convenience function returning a readline test expectation."""
268 return { 267 return {
269 "name": "readline", 268 "name": "readline",
270 "args": [], 269 "args": [],
271 "ret": text, 270 "ret": text,
272 "cb": cb, 271 "cb": cb,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return "100000" 416 return "100000"
418 417
419 def Expect(self, *args): 418 def Expect(self, *args):
420 """Convenience wrapper.""" 419 """Convenience wrapper."""
421 self._mock.Expect(*args) 420 self._mock.Expect(*args)
422 421
423 def setUp(self): 422 def setUp(self):
424 self._mock = SimpleMock() 423 self._mock = SimpleMock()
425 self._tmp_files = [] 424 self._tmp_files = []
426 self._state = {} 425 self._state = {}
426 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
427 427
428 def tearDown(self): 428 def tearDown(self):
429 if os.path.exists(TEST_CONFIG[PERSISTFILE_BASENAME]): 429 if os.path.exists(TEST_CONFIG[PERSISTFILE_BASENAME]):
430 shutil.rmtree(TEST_CONFIG[PERSISTFILE_BASENAME]) 430 shutil.rmtree(TEST_CONFIG[PERSISTFILE_BASENAME])
431 431
432 # Clean up temps. Doesn't work automatically. 432 # Clean up temps. Doesn't work automatically.
433 for name in self._tmp_files: 433 for name in self._tmp_files:
434 if os.path.isfile(name): 434 if os.path.isfile(name):
435 os.remove(name) 435 os.remove(name)
436 if os.path.isdir(name): 436 if os.path.isdir(name):
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 Cmd("git svn fetch", ""), 476 Cmd("git svn fetch", ""),
477 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG[BRANCHNAME]), 477 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG[BRANCHNAME]),
478 RL("Y"), 478 RL("Y"),
479 Cmd("git branch -D %s" % TEST_CONFIG[BRANCHNAME], None), 479 Cmd("git branch -D %s" % TEST_CONFIG[BRANCHNAME], None),
480 ]) 480 ])
481 self.MakeStep().CommonPrepare() 481 self.MakeStep().CommonPrepare()
482 self.assertRaises(Exception, self.MakeStep().PrepareBranch) 482 self.assertRaises(Exception, self.MakeStep().PrepareBranch)
483 self.assertEquals("some_branch", self._state["current_branch"]) 483 self.assertEquals("some_branch", self._state["current_branch"])
484 484
485 def testInitialEnvironmentChecks(self): 485 def testInitialEnvironmentChecks(self):
486 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 486 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
487 os.environ["EDITOR"] = "vi" 487 os.environ["EDITOR"] = "vi"
488 self.Expect([ 488 self.Expect([
489 Cmd("which vi", "/usr/bin/vi"), 489 Cmd("which vi", "/usr/bin/vi"),
490 ]) 490 ])
491 self.MakeStep().InitialEnvironmentChecks() 491 self.MakeStep().InitialEnvironmentChecks(TEST_CONFIG["DEFAULT_CWD"])
492 492
493 def testReadAndPersistVersion(self): 493 def testReadAndPersistVersion(self):
494 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile() 494 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile()
495 self.WriteFakeVersionFile(build=5) 495 self.WriteFakeVersionFile(build=5)
496 step = self.MakeStep() 496 step = self.MakeStep()
497 step.ReadAndPersistVersion() 497 step.ReadAndPersistVersion()
498 self.assertEquals("3", step["major"]) 498 self.assertEquals("3", step["major"])
499 self.assertEquals("22", step["minor"]) 499 self.assertEquals("22", step["minor"])
500 self.assertEquals("5", step["build"]) 500 self.assertEquals("5", step["build"])
501 self.assertEquals("0", step["patch"]) 501 self.assertEquals("0", step["patch"])
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 674
675 Performance and stability improvements on all platforms.""" 675 Performance and stability improvements on all platforms."""
676 self._TestSquashCommits(change_log, commit_msg) 676 self._TestSquashCommits(change_log, commit_msg)
677 677
678 def testSquashCommitsQuotationMarks(self): 678 def testSquashCommitsQuotationMarks(self):
679 change_log = """Line with "quotation marks".\n""" 679 change_log = """Line with "quotation marks".\n"""
680 commit_msg = """Line with "quotation marks".""" 680 commit_msg = """Line with "quotation marks"."""
681 self._TestSquashCommits(change_log, commit_msg) 681 self._TestSquashCommits(change_log, commit_msg)
682 682
683 def _PushToTrunk(self, force=False, manual=False): 683 def _PushToTrunk(self, force=False, manual=False):
684 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 684 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
685 685
686 # The version file on bleeding edge has build level 5, while the version 686 # The version file on bleeding edge has build level 5, while the version
687 # file from trunk has build level 4. 687 # file from trunk has build level 4.
688 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile() 688 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile()
689 self.WriteFakeVersionFile(build=5) 689 self.WriteFakeVersionFile(build=5)
690 690
691 TEST_CONFIG[CHANGELOG_ENTRY_FILE] = self.MakeEmptyTempFile() 691 TEST_CONFIG[CHANGELOG_ENTRY_FILE] = self.MakeEmptyTempFile()
692 TEST_CONFIG[CHANGELOG_FILE] = self.MakeEmptyTempFile() 692 TEST_CONFIG[CHANGELOG_FILE] = self.MakeEmptyTempFile()
693 bleeding_edge_change_log = "2014-03-17: Sentinel\n" 693 bleeding_edge_change_log = "2014-03-17: Sentinel\n"
694 TextToFile(bleeding_edge_change_log, TEST_CONFIG[CHANGELOG_FILE]) 694 TextToFile(bleeding_edge_change_log, TEST_CONFIG[CHANGELOG_FILE])
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 def testChromiumRoll(self): 850 def testChromiumRoll(self):
851 googlers_mapping_py = "%s-mapping.py" % TEST_CONFIG[PERSISTFILE_BASENAME] 851 googlers_mapping_py = "%s-mapping.py" % TEST_CONFIG[PERSISTFILE_BASENAME]
852 with open(googlers_mapping_py, "w") as f: 852 with open(googlers_mapping_py, "w") as f:
853 f.write(""" 853 f.write("""
854 def list_to_dict(entries): 854 def list_to_dict(entries):
855 return {"g_name@google.com": "c_name@chromium.org"} 855 return {"g_name@google.com": "c_name@chromium.org"}
856 def get_list(): 856 def get_list():
857 pass""") 857 pass""")
858 858
859 # Setup fake directory structures. 859 # Setup fake directory structures.
860 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile()
861 TEST_CONFIG[CHROMIUM] = self.MakeEmptyTempDirectory() 860 TEST_CONFIG[CHROMIUM] = self.MakeEmptyTempDirectory()
861 TextToFile("", os.path.join(TEST_CONFIG[CHROMIUM], ".git"))
862 chrome_dir = TEST_CONFIG[CHROMIUM] 862 chrome_dir = TEST_CONFIG[CHROMIUM]
863 os.makedirs(os.path.join(chrome_dir, "v8")) 863 os.makedirs(os.path.join(chrome_dir, "v8"))
864 864
865 # Write fake deps file. 865 # Write fake deps file.
866 TextToFile("Some line\n \"v8_revision\": \"123444\",\n some line", 866 TextToFile("Some line\n \"v8_revision\": \"123444\",\n some line",
867 os.path.join(chrome_dir, "DEPS")) 867 os.path.join(chrome_dir, "DEPS"))
868 def WriteDeps(): 868 def WriteDeps():
869 TextToFile("Some line\n \"v8_revision\": \"22624\",\n some line", 869 TextToFile("Some line\n \"v8_revision\": \"22624\",\n some line",
870 os.path.join(chrome_dir, "DEPS")) 870 os.path.join(chrome_dir, "DEPS"))
871 871
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 "Version 3.4.5 (based on bleeding_edge revision r99)\n"), 914 "Version 3.4.5 (based on bleeding_edge revision r99)\n"),
915 ]) 915 ])
916 916
917 self._state["lkgr"] = "101" 917 self._state["lkgr"] = "101"
918 918
919 self.assertRaises(Exception, lambda: self.RunStep(auto_push.AutoPush, 919 self.assertRaises(Exception, lambda: self.RunStep(auto_push.AutoPush,
920 CheckLastPush, 920 CheckLastPush,
921 AUTO_PUSH_ARGS)) 921 AUTO_PUSH_ARGS))
922 922
923 def testAutoPush(self): 923 def testAutoPush(self):
924 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 924 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
925 TEST_CONFIG[SETTINGS_LOCATION] = "~/.doesnotexist" 925 TEST_CONFIG[SETTINGS_LOCATION] = "~/.doesnotexist"
926 926
927 self.Expect([ 927 self.Expect([
928 Cmd("git status -s -uno", ""), 928 Cmd("git status -s -uno", ""),
929 Cmd("git status -s -b -uno", "## some_branch\n"), 929 Cmd("git status -s -b -uno", "## some_branch\n"),
930 Cmd("git svn fetch", ""), 930 Cmd("git svn fetch", ""),
931 URL("https://v8-status.appspot.com/current?format=json", 931 URL("https://v8-status.appspot.com/current?format=json",
932 "{\"message\": \"Tree is throttled\"}"), 932 "{\"message\": \"Tree is throttled\"}"),
933 URL("https://v8-status.appspot.com/lkgr", Exception("Network problem")), 933 URL("https://v8-status.appspot.com/lkgr", Exception("Network problem")),
934 URL("https://v8-status.appspot.com/lkgr", "100"), 934 URL("https://v8-status.appspot.com/lkgr", "100"),
935 Cmd(("git log -1 --format=%H --grep=\"" 935 Cmd(("git log -1 --format=%H --grep=\""
936 "^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\"" 936 "^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\""
937 " svn/trunk"), "push_hash\n"), 937 " svn/trunk"), "push_hash\n"),
938 Cmd("git log -1 --format=%s push_hash", 938 Cmd("git log -1 --format=%s push_hash",
939 "Version 3.4.5 (based on bleeding_edge revision r79)\n"), 939 "Version 3.4.5 (based on bleeding_edge revision r79)\n"),
940 ]) 940 ])
941 941
942 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS + ["--push"]) 942 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS + ["--push"])
943 943
944 state = json.loads(FileToText("%s-state.json" 944 state = json.loads(FileToText("%s-state.json"
945 % TEST_CONFIG[PERSISTFILE_BASENAME])) 945 % TEST_CONFIG[PERSISTFILE_BASENAME]))
946 946
947 self.assertEquals("100", state["lkgr"]) 947 self.assertEquals("100", state["lkgr"])
948 948
949 def testAutoPushStoppedBySettings(self): 949 def testAutoPushStoppedBySettings(self):
950 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 950 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
951 TEST_CONFIG[SETTINGS_LOCATION] = self.MakeEmptyTempFile() 951 TEST_CONFIG[SETTINGS_LOCATION] = self.MakeEmptyTempFile()
952 TextToFile("{\"enable_auto_push\": false}", TEST_CONFIG[SETTINGS_LOCATION]) 952 TextToFile("{\"enable_auto_push\": false}", TEST_CONFIG[SETTINGS_LOCATION])
953 953
954 self.Expect([ 954 self.Expect([
955 Cmd("git status -s -uno", ""), 955 Cmd("git status -s -uno", ""),
956 Cmd("git status -s -b -uno", "## some_branch\n"), 956 Cmd("git status -s -b -uno", "## some_branch\n"),
957 Cmd("git svn fetch", ""), 957 Cmd("git svn fetch", ""),
958 ]) 958 ])
959 959
960 def RunAutoPush(): 960 def RunAutoPush():
961 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS) 961 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS)
962 self.assertRaises(Exception, RunAutoPush) 962 self.assertRaises(Exception, RunAutoPush)
963 963
964 def testAutoPushStoppedByTreeStatus(self): 964 def testAutoPushStoppedByTreeStatus(self):
965 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 965 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
966 TEST_CONFIG[SETTINGS_LOCATION] = "~/.doesnotexist" 966 TEST_CONFIG[SETTINGS_LOCATION] = "~/.doesnotexist"
967 967
968 self.Expect([ 968 self.Expect([
969 Cmd("git status -s -uno", ""), 969 Cmd("git status -s -uno", ""),
970 Cmd("git status -s -b -uno", "## some_branch\n"), 970 Cmd("git status -s -b -uno", "## some_branch\n"),
971 Cmd("git svn fetch", ""), 971 Cmd("git svn fetch", ""),
972 URL("https://v8-status.appspot.com/current?format=json", 972 URL("https://v8-status.appspot.com/current?format=json",
973 "{\"message\": \"Tree is throttled (no push)\"}"), 973 "{\"message\": \"Tree is throttled (no push)\"}"),
974 ]) 974 ])
975 975
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 Cmd("git log -1 --format=%B push_hash", self.C_V8_123456_LOG), 1035 Cmd("git log -1 --format=%B push_hash", self.C_V8_123456_LOG),
1036 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG), 1036 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG),
1037 ]) 1037 ])
1038 1038
1039 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run( 1039 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run(
1040 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG[CHROMIUM], "--roll"]) 1040 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG[CHROMIUM], "--roll"])
1041 self.assertEquals(0, result) 1041 self.assertEquals(0, result)
1042 1042
1043 def testMergeToBranch(self): 1043 def testMergeToBranch(self):
1044 TEST_CONFIG[ALREADY_MERGING_SENTINEL_FILE] = self.MakeEmptyTempFile() 1044 TEST_CONFIG[ALREADY_MERGING_SENTINEL_FILE] = self.MakeEmptyTempFile()
1045 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile() 1045 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
1046 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile() 1046 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile()
1047 self.WriteFakeVersionFile(build=5) 1047 self.WriteFakeVersionFile(build=5)
1048 os.environ["EDITOR"] = "vi" 1048 os.environ["EDITOR"] = "vi"
1049 extra_patch = self.MakeEmptyTempFile() 1049 extra_patch = self.MakeEmptyTempFile()
1050 1050
1051 def VerifyPatch(patch): 1051 def VerifyPatch(patch):
1052 return lambda: self.assertEquals(patch, 1052 return lambda: self.assertEquals(patch,
1053 FileToText(TEST_CONFIG[TEMPORARY_PATCH_FILE])) 1053 FileToText(TEST_CONFIG[TEMPORARY_PATCH_FILE]))
1054 1054
1055 msg = """Version 3.22.5.1 (merged r12345, r23456, r34567, r45678, r56789) 1055 msg = """Version 3.22.5.1 (merged r12345, r23456, r34567, r45678, r56789)
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 c_hash3_commit_log = """Simple. 1219 c_hash3_commit_log = """Simple.
1220 1220
1221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3456 0039-1c4b 1221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3456 0039-1c4b
1222 1222
1223 """ 1223 """
1224 json_output = self.MakeEmptyTempFile() 1224 json_output = self.MakeEmptyTempFile()
1225 csv_output = self.MakeEmptyTempFile() 1225 csv_output = self.MakeEmptyTempFile()
1226 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile() 1226 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile()
1227 self.WriteFakeVersionFile() 1227 self.WriteFakeVersionFile()
1228 1228
1229 TEST_CONFIG[DOT_GIT_LOCATION] = self.MakeEmptyTempFile()
1230 TEST_CONFIG[CHROMIUM] = self.MakeEmptyTempDirectory() 1229 TEST_CONFIG[CHROMIUM] = self.MakeEmptyTempDirectory()
1231 chrome_dir = TEST_CONFIG[CHROMIUM] 1230 chrome_dir = TEST_CONFIG[CHROMIUM]
1232 chrome_v8_dir = os.path.join(chrome_dir, "v8") 1231 chrome_v8_dir = os.path.join(chrome_dir, "v8")
1233 os.makedirs(chrome_v8_dir) 1232 os.makedirs(chrome_v8_dir)
1234 def WriteDEPS(revision): 1233 def WriteDEPS(revision):
1235 TextToFile("Line\n \"v8_revision\": \"%s\",\n line\n" % revision, 1234 TextToFile("Line\n \"v8_revision\": \"%s\",\n line\n" % revision,
1236 os.path.join(chrome_dir, "DEPS")) 1235 os.path.join(chrome_dir, "DEPS"))
1237 WriteDEPS(567) 1236 WriteDEPS(567)
1238 1237
1239 def ResetVersion(minor, build, patch=0): 1238 def ResetVersion(minor, build, patch=0):
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 1551
1553 Review URL: https://codereview.chromium.org/83173002 1552 Review URL: https://codereview.chromium.org/83173002
1554 1553
1555 ------------------------------------------------------------------------""") 1554 ------------------------------------------------------------------------""")
1556 self.assertEquals( 1555 self.assertEquals(
1557 """Prepare push to trunk. Now working on version 3.23.11. 1556 """Prepare push to trunk. Now working on version 3.23.11.
1558 1557
1559 R=danno@chromium.org 1558 R=danno@chromium.org
1560 1559
1561 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1560 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/releases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698