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

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

Issue 141633003: Activate calling push-to-trunk in auto-roll script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/push_to_trunk.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 return self._git_mock.Call(args) 293 return self._git_mock.Call(args)
294 294
295 def LogMock(self, cmd, args=""): 295 def LogMock(self, cmd, args=""):
296 print "Log: %s %s" % (cmd, args) 296 print "Log: %s %s" % (cmd, args)
297 297
298 MOCKS = { 298 MOCKS = {
299 "git": GitMock, 299 "git": GitMock,
300 "vi": LogMock, 300 "vi": LogMock,
301 } 301 }
302 302
303 def Call(self, fun, *args, **kwargs):
304 print "Calling %s with %s and %s" % (str(fun), str(args), str(kwargs))
305
303 def Command(self, cmd, args="", prefix="", pipe=True): 306 def Command(self, cmd, args="", prefix="", pipe=True):
304 return ScriptTest.MOCKS[cmd](self, cmd, args) 307 return ScriptTest.MOCKS[cmd](self, cmd, args)
305 308
306 def ReadLine(self): 309 def ReadLine(self):
307 return self._rl_mock.Call() 310 return self._rl_mock.Call()
308 311
309 def ReadURL(self, url, params): 312 def ReadURL(self, url, params):
310 if params is not None: 313 if params is not None:
311 return self._url_mock.Call(url, params) 314 return self._url_mock.Call(url, params)
312 else: 315 else:
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 840
838 Review URL: https://codereview.chromium.org/83173002 841 Review URL: https://codereview.chromium.org/83173002
839 842
840 ------------------------------------------------------------------------""") 843 ------------------------------------------------------------------------""")
841 self.assertEquals( 844 self.assertEquals(
842 """Prepare push to trunk. Now working on version 3.23.11. 845 """Prepare push to trunk. Now working on version 3.23.11.
843 846
844 R=danno@chromium.org 847 R=danno@chromium.org
845 848
846 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 849 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/push_to_trunk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698