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

Side by Side Diff: tools/release/test_scripts.py

Issue 959713003: Add public version macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « tools/release/merge_to_branch.py ('k') | tools/test-push-to-trunk.sh » ('j') | 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 return name 354 return name
355 355
356 356
357 def WriteFakeVersionFile(self, major=3, minor=22, build=4, patch=0): 357 def WriteFakeVersionFile(self, major=3, minor=22, build=4, patch=0):
358 version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE) 358 version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)
359 if not os.path.exists(os.path.dirname(version_file)): 359 if not os.path.exists(os.path.dirname(version_file)):
360 os.makedirs(os.path.dirname(version_file)) 360 os.makedirs(os.path.dirname(version_file))
361 with open(version_file, "w") as f: 361 with open(version_file, "w") as f:
362 f.write(" // Some line...\n") 362 f.write(" // Some line...\n")
363 f.write("\n") 363 f.write("\n")
364 f.write("#define MAJOR_VERSION %s\n" % major) 364 f.write("#define V8_MAJOR_VERSION %s\n" % major)
365 f.write("#define MINOR_VERSION %s\n" % minor) 365 f.write("#define V8_MINOR_VERSION %s\n" % minor)
366 f.write("#define BUILD_NUMBER %s\n" % build) 366 f.write("#define V8_BUILD_NUMBER %s\n" % build)
367 f.write("#define PATCH_LEVEL %s\n" % patch) 367 f.write("#define V8_PATCH_LEVEL %s\n" % patch)
368 f.write(" // Some line...\n") 368 f.write(" // Some line...\n")
369 f.write("#define IS_CANDIDATE_VERSION 0\n") 369 f.write("#define V8_IS_CANDIDATE_VERSION 0\n")
370 370
371 def MakeStep(self): 371 def MakeStep(self):
372 """Convenience wrapper.""" 372 """Convenience wrapper."""
373 options = ScriptsBase(TEST_CONFIG, self, self._state).MakeOptions([]) 373 options = ScriptsBase(TEST_CONFIG, self, self._state).MakeOptions([])
374 return MakeStep(step_class=Step, state=self._state, 374 return MakeStep(step_class=Step, state=self._state,
375 config=TEST_CONFIG, side_effect_handler=self, 375 config=TEST_CONFIG, side_effect_handler=self,
376 options=options) 376 options=options)
377 377
378 def RunStep(self, script=PushToCandidates, step_class=Step, args=None): 378 def RunStep(self, script=PushToCandidates, step_class=Step, args=None):
379 """Convenience wrapper.""" 379 """Convenience wrapper."""
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 cl = " too little\n\ttab\ttab\n too much\n trailing " 521 cl = " too little\n\ttab\ttab\n too much\n trailing "
522 cl = MSub(r"\t", r" ", cl) 522 cl = MSub(r"\t", r" ", cl)
523 cl = MSub(r"^ {1,7}([^ ])", r" \1", cl) 523 cl = MSub(r"^ {1,7}([^ ])", r" \1", cl)
524 cl = MSub(r"^ {9,80}([^ ])", r" \1", cl) 524 cl = MSub(r"^ {9,80}([^ ])", r" \1", cl)
525 cl = MSub(r" +$", r"", cl) 525 cl = MSub(r" +$", r"", cl)
526 self.assertEqual(" too little\n" 526 self.assertEqual(" too little\n"
527 " tab tab\n" 527 " tab tab\n"
528 " too much\n" 528 " too much\n"
529 " trailing", cl) 529 " trailing", cl)
530 530
531 self.assertEqual("//\n#define BUILD_NUMBER 3\n", 531 self.assertEqual("//\n#define V8_BUILD_NUMBER 3\n",
532 MSub(r"(?<=#define BUILD_NUMBER)(?P<space>\s+)\d*$", 532 MSub(r"(?<=#define V8_BUILD_NUMBER)(?P<space>\s+)\d*$",
533 r"\g<space>3", 533 r"\g<space>3",
534 "//\n#define BUILD_NUMBER 321\n")) 534 "//\n#define V8_BUILD_NUMBER 321\n"))
535 535
536 def testPreparePushRevision(self): 536 def testPreparePushRevision(self):
537 # Tests the default push hash used when the --revision option is not set. 537 # Tests the default push hash used when the --revision option is not set.
538 self.Expect([ 538 self.Expect([
539 Cmd("git log -1 --format=%H HEAD", "push_hash") 539 Cmd("git log -1 --format=%H HEAD", "push_hash")
540 ]) 540 ])
541 541
542 self.RunStep(PushToCandidates, PreparePushRevision) 542 self.RunStep(PushToCandidates, PreparePushRevision)
543 self.assertEquals("push_hash", self._state["push_hash"]) 543 self.assertEquals("push_hash", self._state["push_hash"])
544 544
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 3.22.4 622 3.22.4
623 test_tag 623 test_tag
624 """ 624 """
625 625
626 # Version as tag: 3.22.4.0. Version on master: 3.22.6. 626 # Version as tag: 3.22.4.0. Version on master: 3.22.6.
627 # Make sure that the latest version is 3.22.6.0. 627 # Make sure that the latest version is 3.22.6.0.
628 def testIncrementVersion(self): 628 def testIncrementVersion(self):
629 self.Expect([ 629 self.Expect([
630 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 630 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
631 Cmd("git tag", self.TAGS), 631 Cmd("git tag", self.TAGS),
632 Cmd("git checkout -f origin/master -- src/version.cc", 632 Cmd("git checkout -f origin/master -- include/v8-version.h",
633 "", cb=lambda: self.WriteFakeVersionFile(3, 22, 6)), 633 "", cb=lambda: self.WriteFakeVersionFile(3, 22, 6)),
634 ]) 634 ])
635 635
636 self.RunStep(PushToCandidates, IncrementVersion) 636 self.RunStep(PushToCandidates, IncrementVersion)
637 637
638 self.assertEquals("3", self._state["new_major"]) 638 self.assertEquals("3", self._state["new_major"])
639 self.assertEquals("22", self._state["new_minor"]) 639 self.assertEquals("22", self._state["new_minor"])
640 self.assertEquals("7", self._state["new_build"]) 640 self.assertEquals("7", self._state["new_build"])
641 self.assertEquals("0", self._state["new_patch"]) 641 self.assertEquals("0", self._state["new_patch"])
642 642
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 743
744 def ResetToCandidates(): 744 def ResetToCandidates():
745 ResetChangeLog() 745 ResetChangeLog()
746 self.WriteFakeVersionFile() 746 self.WriteFakeVersionFile()
747 747
748 def CheckVersionCommit(): 748 def CheckVersionCommit():
749 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"]) 749 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
750 self.assertEquals(commit_msg, commit) 750 self.assertEquals(commit_msg, commit)
751 version = FileToText( 751 version = FileToText(
752 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)) 752 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
753 self.assertTrue(re.search(r"#define MINOR_VERSION\s+22", version)) 753 self.assertTrue(re.search(r"#define V8_MINOR_VERSION\s+22", version))
754 self.assertTrue(re.search(r"#define BUILD_NUMBER\s+5", version)) 754 self.assertTrue(re.search(r"#define V8_BUILD_NUMBER\s+5", version))
755 self.assertFalse(re.search(r"#define BUILD_NUMBER\s+6", version)) 755 self.assertFalse(re.search(r"#define V8_BUILD_NUMBER\s+6", version))
756 self.assertTrue(re.search(r"#define PATCH_LEVEL\s+0", version)) 756 self.assertTrue(re.search(r"#define V8_PATCH_LEVEL\s+0", version))
757 self.assertTrue(re.search(r"#define IS_CANDIDATE_VERSION\s+0", version)) 757 self.assertTrue(
758 re.search(r"#define V8_IS_CANDIDATE_VERSION\s+0", version))
758 759
759 # Check that the change log on the candidates branch got correctly 760 # Check that the change log on the candidates branch got correctly
760 # modified. 761 # modified.
761 change_log = FileToText( 762 change_log = FileToText(
762 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE)) 763 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
763 self.assertEquals( 764 self.assertEquals(
764 """1999-07-31: Version 3.22.5 765 """1999-07-31: Version 3.22.5
765 766
766 Log text 1 (issue 321). 767 Log text 1 (issue 321).
767 768
(...skipping 12 matching lines...) Expand all
780 expectations += [ 781 expectations += [
781 Cmd("git status -s -uno", ""), 782 Cmd("git status -s -uno", ""),
782 Cmd("git status -s -b -uno", "## some_branch\n"), 783 Cmd("git status -s -b -uno", "## some_branch\n"),
783 Cmd("git fetch", ""), 784 Cmd("git fetch", ""),
784 Cmd("git branch", " branch1\n* branch2\n"), 785 Cmd("git branch", " branch1\n* branch2\n"),
785 Cmd("git branch", " branch1\n* branch2\n"), 786 Cmd("git branch", " branch1\n* branch2\n"),
786 Cmd(("git new-branch %s --upstream origin/master" % 787 Cmd(("git new-branch %s --upstream origin/master" %
787 TEST_CONFIG["BRANCHNAME"]), ""), 788 TEST_CONFIG["BRANCHNAME"]), ""),
788 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 789 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
789 Cmd("git tag", self.TAGS), 790 Cmd("git tag", self.TAGS),
790 Cmd("git checkout -f origin/master -- src/version.cc", 791 Cmd("git checkout -f origin/master -- include/v8-version.h",
791 "", cb=self.WriteFakeVersionFile), 792 "", cb=self.WriteFakeVersionFile),
792 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), 793 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
793 Cmd("git log -1 --format=%s release_hash", 794 Cmd("git log -1 --format=%s release_hash",
794 "Version 3.22.4 (based on abc3)\n"), 795 "Version 3.22.4 (based on abc3)\n"),
795 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), 796 Cmd("git log --format=%H abc3..push_hash", "rev1\n"),
796 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), 797 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"),
797 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), 798 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"),
798 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), 799 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"),
799 ] 800 ]
800 if manual: 801 if manual:
801 expectations.append(RL("")) # Open editor. 802 expectations.append(RL("")) # Open editor.
802 if not force: 803 if not force:
803 expectations.append( 804 expectations.append(
804 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], "")) 805 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], ""))
805 expectations += [ 806 expectations += [
806 Cmd("git fetch", ""), 807 Cmd("git fetch", ""),
807 Cmd("git checkout -f origin/master", ""), 808 Cmd("git checkout -f origin/master", ""),
808 Cmd("git diff origin/candidates push_hash", "patch content\n"), 809 Cmd("git diff origin/candidates push_hash", "patch content\n"),
809 Cmd(("git new-branch %s --upstream origin/candidates" % 810 Cmd(("git new-branch %s --upstream origin/candidates" %
810 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates), 811 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates),
811 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""), 812 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""),
812 Cmd("git checkout -f origin/candidates -- ChangeLog", "", 813 Cmd("git checkout -f origin/candidates -- ChangeLog", "",
813 cb=ResetChangeLog), 814 cb=ResetChangeLog),
814 Cmd("git checkout -f origin/candidates -- src/version.cc", "", 815 Cmd("git checkout -f origin/candidates -- include/v8-version.h", "",
815 cb=self.WriteFakeVersionFile), 816 cb=self.WriteFakeVersionFile),
816 Cmd("git commit -am \"%s\"" % commit_msg_squashed, ""), 817 Cmd("git commit -am \"%s\"" % commit_msg_squashed, ""),
817 ] 818 ]
818 if manual: 819 if manual:
819 expectations.append(RL("Y")) # Sanity check. 820 expectations.append(RL("Y")) # Sanity check.
820 expectations += [ 821 expectations += [
821 Cmd("git cl land -f --bypass-hooks", ""), 822 Cmd("git cl land -f --bypass-hooks", ""),
822 Cmd("git checkout -f master", ""), 823 Cmd("git checkout -f master", ""),
823 Cmd("git fetch", ""), 824 Cmd("git fetch", ""),
824 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""), 825 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 Performance and stability improvements on all platforms.\n""" 885 Performance and stability improvements on all platforms.\n"""
885 TextToFile(last_change_log, 886 TextToFile(last_change_log,
886 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE)) 887 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
887 888
888 889
889 def CheckVersionCommit(): 890 def CheckVersionCommit():
890 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"]) 891 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
891 self.assertEquals(commit_msg, commit) 892 self.assertEquals(commit_msg, commit)
892 version = FileToText( 893 version = FileToText(
893 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)) 894 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
894 self.assertTrue(re.search(r"#define MINOR_VERSION\s+22", version)) 895 self.assertTrue(re.search(r"#define V8_MINOR_VERSION\s+22", version))
895 self.assertTrue(re.search(r"#define BUILD_NUMBER\s+5", version)) 896 self.assertTrue(re.search(r"#define V8_BUILD_NUMBER\s+5", version))
896 self.assertFalse(re.search(r"#define BUILD_NUMBER\s+6", version)) 897 self.assertFalse(re.search(r"#define V8_BUILD_NUMBER\s+6", version))
897 self.assertTrue(re.search(r"#define PATCH_LEVEL\s+0", version)) 898 self.assertTrue(re.search(r"#define V8_PATCH_LEVEL\s+0", version))
898 self.assertTrue(re.search(r"#define IS_CANDIDATE_VERSION\s+0", version)) 899 self.assertTrue(
900 re.search(r"#define V8_IS_CANDIDATE_VERSION\s+0", version))
899 901
900 # Check that the change log on the candidates branch got correctly 902 # Check that the change log on the candidates branch got correctly
901 # modified. 903 # modified.
902 change_log = FileToText( 904 change_log = FileToText(
903 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE)) 905 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
904 self.assertEquals( 906 self.assertEquals(
905 """1999-07-31: Version 3.22.5 907 """1999-07-31: Version 3.22.5
906 908
907 Log text 1 (issue 321). 909 Log text 1 (issue 321).
908 910
(...skipping 10 matching lines...) Expand all
919 "+refs/heads/*:refs/heads/* " 921 "+refs/heads/*:refs/heads/* "
920 "+refs/pending/*:refs/pending/* " 922 "+refs/pending/*:refs/pending/* "
921 "+refs/pending-tags/*:refs/pending-tags/*", ""), 923 "+refs/pending-tags/*:refs/pending-tags/*", ""),
922 Cmd("git checkout -f origin/master", ""), 924 Cmd("git checkout -f origin/master", ""),
923 Cmd("git branch", ""), 925 Cmd("git branch", ""),
924 Cmd("git log -1 --format=\"%H %T\" push_hash", "push_hash tree_hash"), 926 Cmd("git log -1 --format=\"%H %T\" push_hash", "push_hash tree_hash"),
925 Cmd("git log -200 --format=\"%H %T\" refs/pending/heads/master", 927 Cmd("git log -200 --format=\"%H %T\" refs/pending/heads/master",
926 "not_right wrong\npending_hash tree_hash\nsome other\n"), 928 "not_right wrong\npending_hash tree_hash\nsome other\n"),
927 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 929 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
928 Cmd("git tag", self.TAGS), 930 Cmd("git tag", self.TAGS),
929 Cmd("git checkout -f origin/master -- src/version.cc", 931 Cmd("git checkout -f origin/master -- include/v8-version.h",
930 "", cb=self.WriteFakeVersionFile), 932 "", cb=self.WriteFakeVersionFile),
931 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), 933 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
932 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"), 934 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"),
933 Cmd("git log -1 --format=%H release_hash^", "abc3\n"), 935 Cmd("git log -1 --format=%H release_hash^", "abc3\n"),
934 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), 936 Cmd("git log --format=%H abc3..push_hash", "rev1\n"),
935 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), 937 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"),
936 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), 938 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"),
937 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), 939 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"),
938 Cmd("git reset --hard origin/master", ""), 940 Cmd("git reset --hard origin/master", ""),
939 Cmd("git checkout -b work-branch pending_hash", ""), 941 Cmd("git checkout -b work-branch pending_hash", ""),
940 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog), 942 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog),
941 Cmd("git checkout -f 3.22.4 -- src/version.cc", "", 943 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "",
942 cb=self.WriteFakeVersionFile), 944 cb=self.WriteFakeVersionFile),
943 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", 945 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
944 cb=CheckVersionCommit), 946 cb=CheckVersionCommit),
945 Cmd("git push origin " 947 Cmd("git push origin "
946 "refs/heads/work-branch:refs/pending/heads/3.22.5 " 948 "refs/heads/work-branch:refs/pending/heads/3.22.5 "
947 "pending_hash:refs/pending-tags/heads/3.22.5 " 949 "pending_hash:refs/pending-tags/heads/3.22.5 "
948 "push_hash:refs/heads/3.22.5", ""), 950 "push_hash:refs/heads/3.22.5", ""),
949 Cmd("git fetch", ""), 951 Cmd("git fetch", ""),
950 Cmd("git log -1 --format=%H --grep=" 952 Cmd("git log -1 --format=%H --grep="
951 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"), 953 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"),
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 1185
1184 BUG=123,234,345,456,567,v8:123 1186 BUG=123,234,345,456,567,v8:123
1185 LOG=N 1187 LOG=N
1186 """ 1188 """
1187 1189
1188 def VerifyLand(): 1190 def VerifyLand():
1189 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"]) 1191 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
1190 self.assertEquals(msg, commit) 1192 self.assertEquals(msg, commit)
1191 version = FileToText( 1193 version = FileToText(
1192 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)) 1194 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
1193 self.assertTrue(re.search(r"#define MINOR_VERSION\s+22", version)) 1195 self.assertTrue(re.search(r"#define V8_MINOR_VERSION\s+22", version))
1194 self.assertTrue(re.search(r"#define BUILD_NUMBER\s+5", version)) 1196 self.assertTrue(re.search(r"#define V8_BUILD_NUMBER\s+5", version))
1195 self.assertTrue(re.search(r"#define PATCH_LEVEL\s+1", version)) 1197 self.assertTrue(re.search(r"#define V8_PATCH_LEVEL\s+1", version))
1196 self.assertTrue(re.search(r"#define IS_CANDIDATE_VERSION\s+0", version)) 1198 self.assertTrue(
1199 re.search(r"#define V8_IS_CANDIDATE_VERSION\s+0", version))
1197 1200
1198 self.Expect([ 1201 self.Expect([
1199 Cmd("git status -s -uno", ""), 1202 Cmd("git status -s -uno", ""),
1200 Cmd("git status -s -b -uno", "## some_branch\n"), 1203 Cmd("git status -s -b -uno", "## some_branch\n"),
1201 Cmd("git fetch", ""), 1204 Cmd("git fetch", ""),
1202 Cmd("git branch", " branch1\n* branch2\n"), 1205 Cmd("git branch", " branch1\n* branch2\n"),
1203 Cmd("git new-branch %s --upstream refs/remotes/origin/candidates" % 1206 Cmd("git new-branch %s --upstream refs/remotes/origin/candidates" %
1204 TEST_CONFIG["BRANCHNAME"], ""), 1207 TEST_CONFIG["BRANCHNAME"], ""),
1205 Cmd(("git log --format=%H --grep=\"Port ab12345\" " 1208 Cmd(("git log --format=%H --grep=\"Port ab12345\" "
1206 "--reverse origin/master"), 1209 "--reverse origin/master"),
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 1550
1548 Review URL: https://codereview.chromium.org/83173002 1551 Review URL: https://codereview.chromium.org/83173002
1549 1552
1550 ------------------------------------------------------------------------""") 1553 ------------------------------------------------------------------------""")
1551 self.assertEquals( 1554 self.assertEquals(
1552 """Prepare push to trunk. Now working on version 3.23.11. 1555 """Prepare push to trunk. Now working on version 3.23.11.
1553 1556
1554 R=danno@chromium.org 1557 R=danno@chromium.org
1555 1558
1556 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1559 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/release/merge_to_branch.py ('k') | tools/test-push-to-trunk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698