| OLD | NEW |
| 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 msg = """Version 3.22.5.1 (merged r12345, r23456, r34567, r45678, r56789) | 988 msg = """Version 3.22.5.1 (merged r12345, r23456, r34567, r45678, r56789) |
| 989 | 989 |
| 990 Title4 | 990 Title4 |
| 991 | 991 |
| 992 Title2 | 992 Title2 |
| 993 | 993 |
| 994 Title3 | 994 Title3 |
| 995 | 995 |
| 996 Title1 | 996 Title1 |
| 997 | 997 |
| 998 Title5 | 998 Revert "Something" |
| 999 | 999 |
| 1000 BUG=123,234,345,456,567,v8:123 | 1000 BUG=123,234,345,456,567,v8:123 |
| 1001 LOG=N | 1001 LOG=N |
| 1002 """ | 1002 """ |
| 1003 | 1003 |
| 1004 def VerifySVNCommit(): | 1004 def VerifySVNCommit(): |
| 1005 commit = FileToText(TEST_CONFIG[COMMITMSG_FILE]) | 1005 commit = FileToText(TEST_CONFIG[COMMITMSG_FILE]) |
| 1006 self.assertEquals(msg, commit) | 1006 self.assertEquals(msg, commit) |
| 1007 version = FileToText(TEST_CONFIG[VERSION_FILE]) | 1007 version = FileToText(TEST_CONFIG[VERSION_FILE]) |
| 1008 self.assertTrue(re.search(r"#define MINOR_VERSION\s+22", version)) | 1008 self.assertTrue(re.search(r"#define MINOR_VERSION\s+22", version)) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1036 # Restart script in the failing step. | 1036 # Restart script in the failing step. |
| 1037 Git("svn find-rev r12345 svn/bleeding_edge", "hash4"), | 1037 Git("svn find-rev r12345 svn/bleeding_edge", "hash4"), |
| 1038 Git("svn find-rev r23456 svn/bleeding_edge", "hash2"), | 1038 Git("svn find-rev r23456 svn/bleeding_edge", "hash2"), |
| 1039 Git("svn find-rev r34567 svn/bleeding_edge", "hash3"), | 1039 Git("svn find-rev r34567 svn/bleeding_edge", "hash3"), |
| 1040 Git("svn find-rev r45678 svn/bleeding_edge", "hash1"), | 1040 Git("svn find-rev r45678 svn/bleeding_edge", "hash1"), |
| 1041 Git("svn find-rev r56789 svn/bleeding_edge", "hash5"), | 1041 Git("svn find-rev r56789 svn/bleeding_edge", "hash5"), |
| 1042 Git("log -1 --format=%s hash4", "Title4"), | 1042 Git("log -1 --format=%s hash4", "Title4"), |
| 1043 Git("log -1 --format=%s hash2", "Title2"), | 1043 Git("log -1 --format=%s hash2", "Title2"), |
| 1044 Git("log -1 --format=%s hash3", "Title3"), | 1044 Git("log -1 --format=%s hash3", "Title3"), |
| 1045 Git("log -1 --format=%s hash1", "Title1"), | 1045 Git("log -1 --format=%s hash1", "Title1"), |
| 1046 Git("log -1 --format=%s hash5", "Title5"), | 1046 Git("log -1 --format=%s hash5", "Revert \"Something\""), |
| 1047 Git("log -1 hash4", "Title4\nBUG=123\nBUG=234"), | 1047 Git("log -1 hash4", "Title4\nBUG=123\nBUG=234"), |
| 1048 Git("log -1 hash2", "Title2\n BUG = v8:123,345"), | 1048 Git("log -1 hash2", "Title2\n BUG = v8:123,345"), |
| 1049 Git("log -1 hash3", "Title3\nLOG=n\nBUG=567, 456"), | 1049 Git("log -1 hash3", "Title3\nLOG=n\nBUG=567, 456"), |
| 1050 Git("log -1 hash1", "Title1"), | 1050 Git("log -1 hash1", "Title1\nBUG="), |
| 1051 Git("log -1 hash5", "Title5"), | 1051 Git("log -1 hash5", "Revert \"Something\"\nBUG=none"), |
| 1052 Git("log -1 -p hash4", "patch4"), | 1052 Git("log -1 -p hash4", "patch4"), |
| 1053 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], | 1053 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], |
| 1054 "", cb=VerifyPatch("patch4")), | 1054 "", cb=VerifyPatch("patch4")), |
| 1055 Git("log -1 -p hash2", "patch2"), | 1055 Git("log -1 -p hash2", "patch2"), |
| 1056 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], | 1056 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], |
| 1057 "", cb=VerifyPatch("patch2")), | 1057 "", cb=VerifyPatch("patch2")), |
| 1058 Git("log -1 -p hash3", "patch3"), | 1058 Git("log -1 -p hash3", "patch3"), |
| 1059 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], | 1059 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], |
| 1060 "", cb=VerifyPatch("patch3")), | 1060 "", cb=VerifyPatch("patch3")), |
| 1061 Git("log -1 -p hash1", "patch1"), | 1061 Git("log -1 -p hash1", "patch1"), |
| 1062 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], | 1062 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], |
| 1063 "", cb=VerifyPatch("patch1")), | 1063 "", cb=VerifyPatch("patch1")), |
| 1064 Git("log -1 -p hash5", "patch5\n"), | 1064 Git("log -1 -p hash5", "patch5\n"), |
| 1065 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], | 1065 Git("apply --index --reject \"%s\"" % TEST_CONFIG[TEMPORARY_PATCH_FILE], |
| 1066 "", cb=VerifyPatch("patch5\n")), | 1066 "", cb=VerifyPatch("patch5\n")), |
| 1067 Git("apply --index --reject \"%s\"" % extra_patch, ""), | 1067 Git("apply --index --reject \"%s\"" % extra_patch, ""), |
| 1068 Git("commit -aF \"%s\"" % TEST_CONFIG[COMMITMSG_FILE], ""), | 1068 Git("commit -aF \"%s\"" % TEST_CONFIG[COMMITMSG_FILE], ""), |
| 1069 Git("cl upload --send-mail -r \"reviewer@chromium.org\"", ""), | 1069 Git("cl upload --send-mail -r \"reviewer@chromium.org\"", ""), |
| 1070 Git("checkout -f %s" % TEST_CONFIG[BRANCHNAME], ""), | 1070 Git("checkout -f %s" % TEST_CONFIG[BRANCHNAME], ""), |
| 1071 Git("cl presubmit", "Presubmit successfull\n"), | 1071 Git("cl presubmit", "Presubmit successfull\n"), |
| 1072 Git("cl dcommit -f --bypass-hooks", "Closing issue\n", cb=VerifySVNCommit)
, | 1072 Git("cl dcommit -f --bypass-hooks", "Closing issue\n", cb=VerifySVNCommit)
, |
| 1073 Git("svn fetch", ""), | 1073 Git("svn fetch", ""), |
| 1074 Git("log -1 --format=%%H --grep=\"%s\" svn/trunk" % msg, "hash6"), | 1074 Git(("log -1 --format=%%H --grep=\"%s\" svn/trunk" |
| 1075 % msg.replace("\"", "\\\"")), "hash6"), |
| 1075 Git("svn find-rev hash6", "1324"), | 1076 Git("svn find-rev hash6", "1324"), |
| 1076 Git(("copy -r 1324 https://v8.googlecode.com/svn/trunk " | 1077 Git(("copy -r 1324 https://v8.googlecode.com/svn/trunk " |
| 1077 "https://v8.googlecode.com/svn/tags/3.22.5.1 -m " | 1078 "https://v8.googlecode.com/svn/tags/3.22.5.1 -m " |
| 1078 "\"Tagging version 3.22.5.1\""), ""), | 1079 "\"Tagging version 3.22.5.1\""), ""), |
| 1079 Git("checkout -f some_branch", ""), | 1080 Git("checkout -f some_branch", ""), |
| 1080 Git("branch -D %s" % TEST_CONFIG[TEMP_BRANCH], ""), | 1081 Git("branch -D %s" % TEST_CONFIG[TEMP_BRANCH], ""), |
| 1081 Git("branch -D %s" % TEST_CONFIG[BRANCHNAME], ""), | 1082 Git("branch -D %s" % TEST_CONFIG[BRANCHNAME], ""), |
| 1082 ]) | 1083 ]) |
| 1083 | 1084 |
| 1084 self.ExpectReadline([ | 1085 self.ExpectReadline([ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 | 1117 |
| 1117 Review URL: https://codereview.chromium.org/83173002 | 1118 Review URL: https://codereview.chromium.org/83173002 |
| 1118 | 1119 |
| 1119 ------------------------------------------------------------------------""") | 1120 ------------------------------------------------------------------------""") |
| 1120 self.assertEquals( | 1121 self.assertEquals( |
| 1121 """Prepare push to trunk. Now working on version 3.23.11. | 1122 """Prepare push to trunk. Now working on version 3.23.11. |
| 1122 | 1123 |
| 1123 R=danno@chromium.org | 1124 R=danno@chromium.org |
| 1124 | 1125 |
| 1125 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1126 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
| OLD | NEW |