OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 | 6 |
7 import datetime | 7 import datetime |
8 import unittest | 8 import unittest |
9 | 9 |
10 import auto_roll | 10 import auto_roll |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 | 400 |
401 class AutoRollTestGit(AutoRollTestBase): | 401 class AutoRollTestGit(AutoRollTestBase): |
402 | 402 |
403 OLDER_REV = 'cfcf604fbdcf6e2d9b982a2fab3fc9f1e3f8cd65' | 403 OLDER_REV = 'cfcf604fbdcf6e2d9b982a2fab3fc9f1e3f8cd65' |
404 OLD_REV = 'b9af6489f6f2004ad11b82c6057f7007e3c35372' | 404 OLD_REV = 'b9af6489f6f2004ad11b82c6057f7007e3c35372' |
405 NEW_REV = '79539998e04afab3ee9c3016881755ca52f60a73' | 405 NEW_REV = '79539998e04afab3ee9c3016881755ca52f60a73' |
406 | 406 |
407 DEPS_CONTENT = ''' | 407 DEPS_CONTENT = ''' |
408 vars = { | 408 vars = { |
409 'test_project_revision': '%s', | 409 'test_project_revision': '%s', # Some comment. |
410 } | 410 } |
411 ''' % OLD_REV | 411 ''' % OLD_REV |
412 | 412 |
413 _GIT_LOG = ''' | 413 _GIT_LOG = ''' |
414 commit %s | 414 commit %s |
415 Author: Test Author <test_author@example.com> | 415 Author: Test Author <test_author@example.com> |
416 Date: Wed Apr 2 14:00:14 2014 -0400 | 416 Date: Wed Apr 2 14:00:14 2014 -0400 |
417 | 417 |
418 Make some changes. | 418 Make some changes. |
419 ''' | 419 ''' |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 461 |
462 # pylint: disable=R0201 | 462 # pylint: disable=R0201 |
463 def _parse_origin_master(self, returnval): | 463 def _parse_origin_master(self, returnval): |
464 auto_roll.subprocess2.check_output( | 464 auto_roll.subprocess2.check_output( |
465 ['git', '--git-dir', './third_party/test_project/.git', 'rev-parse', | 465 ['git', '--git-dir', './third_party/test_project/.git', 'rev-parse', |
466 'origin/master']).AndReturn(returnval) | 466 'origin/master']).AndReturn(returnval) |
467 | 467 |
468 | 468 |
469 if __name__ == '__main__': | 469 if __name__ == '__main__': |
470 unittest.main() | 470 unittest.main() |
OLD | NEW |