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

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

Issue 695323002: Fix auto roll update. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/auto_roll.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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 } 1171 }
1172 """ 1172 """
1173 1173
1174 def testAutoRollUpToDate(self): 1174 def testAutoRollUpToDate(self):
1175 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory() 1175 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1176 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS")) 1176 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1177 self.Expect([ 1177 self.Expect([
1178 URL("https://codereview.chromium.org/search", 1178 URL("https://codereview.chromium.org/search",
1179 "owner=author%40chromium.org&limit=30&closed=3&format=json", 1179 "owner=author%40chromium.org&limit=30&closed=3&format=json",
1180 ("{\"results\": [{\"subject\": \"different\"}]}")), 1180 ("{\"results\": [{\"subject\": \"different\"}]}")),
1181 Cmd("git fetch", ""),
1182 Cmd("git svn fetch", ""),
1181 Cmd(("git log -1 --format=%H --grep=" 1183 Cmd(("git log -1 --format=%H --grep="
1182 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" " 1184 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" "
1183 "origin/candidates"), "push_hash\n"), 1185 "origin/candidates"), "push_hash\n"),
1184 Cmd("git log -1 --format=%B push_hash", self.C_V8_22624_LOG), 1186 Cmd("git log -1 --format=%B push_hash", self.C_V8_22624_LOG),
1185 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG), 1187 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG),
1186 ]) 1188 ])
1187 1189
1188 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run( 1190 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run(
1189 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG["CHROMIUM"]]) 1191 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG["CHROMIUM"]])
1190 self.assertEquals(0, result) 1192 self.assertEquals(0, result)
1191 1193
1192 def testAutoRoll(self): 1194 def testAutoRoll(self):
1193 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory() 1195 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1194 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS")) 1196 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1195 TEST_CONFIG["CLUSTERFUZZ_API_KEY_FILE"] = self.MakeEmptyTempFile() 1197 TEST_CONFIG["CLUSTERFUZZ_API_KEY_FILE"] = self.MakeEmptyTempFile()
1196 TextToFile("fake key", TEST_CONFIG["CLUSTERFUZZ_API_KEY_FILE"]) 1198 TextToFile("fake key", TEST_CONFIG["CLUSTERFUZZ_API_KEY_FILE"])
1197 1199
1198 self.Expect([ 1200 self.Expect([
1199 URL("https://codereview.chromium.org/search", 1201 URL("https://codereview.chromium.org/search",
1200 "owner=author%40chromium.org&limit=30&closed=3&format=json", 1202 "owner=author%40chromium.org&limit=30&closed=3&format=json",
1201 ("{\"results\": [{\"subject\": \"different\"}]}")), 1203 ("{\"results\": [{\"subject\": \"different\"}]}")),
1204 Cmd("git fetch", ""),
1205 Cmd("git svn fetch", ""),
1202 Cmd(("git log -1 --format=%H --grep=" 1206 Cmd(("git log -1 --format=%H --grep="
1203 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" " 1207 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" "
1204 "origin/candidates"), "push_hash\n"), 1208 "origin/candidates"), "push_hash\n"),
1205 Cmd("git log -1 --format=%B push_hash", self.C_V8_123456_LOG), 1209 Cmd("git log -1 --format=%B push_hash", self.C_V8_123456_LOG),
1206 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG), 1210 Cmd("git log -1 --format=%B abcd123455", self.C_V8_123455_LOG),
1207 ]) 1211 ])
1208 1212
1209 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run( 1213 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run(
1210 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG["CHROMIUM"], "--roll"]) 1214 AUTO_PUSH_ARGS + ["-c", TEST_CONFIG["CHROMIUM"], "--roll"])
1211 self.assertEquals(0, result) 1215 self.assertEquals(0, result)
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 1863
1860 Review URL: https://codereview.chromium.org/83173002 1864 Review URL: https://codereview.chromium.org/83173002
1861 1865
1862 ------------------------------------------------------------------------""") 1866 ------------------------------------------------------------------------""")
1863 self.assertEquals( 1867 self.assertEquals(
1864 """Prepare push to trunk. Now working on version 3.23.11. 1868 """Prepare push to trunk. Now working on version 3.23.11.
1865 1869
1866 R=danno@chromium.org 1870 R=danno@chromium.org
1867 1871
1868 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1872 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/auto_roll.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698