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 411593003: Fix version check in push-to-trunk. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 # Make sure that the increment is 3.22.7.0. 609 # Make sure that the increment is 3.22.7.0.
610 def testIncrementVersion(self): 610 def testIncrementVersion(self):
611 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile() 611 TEST_CONFIG[VERSION_FILE] = self.MakeEmptyTempFile()
612 self.WriteFakeVersionFile() 612 self.WriteFakeVersionFile()
613 self._state["last_push_trunk"] = "hash1" 613 self._state["last_push_trunk"] = "hash1"
614 self._state["latest_build"] = "6" 614 self._state["latest_build"] = "6"
615 self._state["latest_version"] = "3.22.6.0" 615 self._state["latest_version"] = "3.22.6.0"
616 616
617 self.ExpectGit([ 617 self.ExpectGit([
618 Git("checkout -f hash1 -- %s" % TEST_CONFIG[VERSION_FILE], ""), 618 Git("checkout -f hash1 -- %s" % TEST_CONFIG[VERSION_FILE], ""),
619 Git("checkout -f master -- %s" % TEST_CONFIG[VERSION_FILE], "", 619 Git("checkout -f svn/bleeding_edge -- %s" % TEST_CONFIG[VERSION_FILE],
620 cb=lambda: self.WriteFakeVersionFile(22, 6)), 620 "", cb=lambda: self.WriteFakeVersionFile(22, 6)),
621 ]) 621 ])
622 622
623 self.ExpectReadline([ 623 self.ExpectReadline([
624 RL("Y"), # Increment build number. 624 RL("Y"), # Increment build number.
625 ]) 625 ])
626 626
627 self.RunStep(PushToTrunk, IncrementVersion) 627 self.RunStep(PushToTrunk, IncrementVersion)
628 628
629 self.assertEquals("3", self._state["new_major"]) 629 self.assertEquals("3", self._state["new_major"])
630 self.assertEquals("22", self._state["new_minor"]) 630 self.assertEquals("22", self._state["new_minor"])
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 1434
1435 Review URL: https://codereview.chromium.org/83173002 1435 Review URL: https://codereview.chromium.org/83173002
1436 1436
1437 ------------------------------------------------------------------------""") 1437 ------------------------------------------------------------------------""")
1438 self.assertEquals( 1438 self.assertEquals(
1439 """Prepare push to trunk. Now working on version 3.23.11. 1439 """Prepare push to trunk. Now working on version 3.23.11.
1440 1440
1441 R=danno@chromium.org 1441 R=danno@chromium.org
1442 1442
1443 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1443 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