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

Side by Side Diff: tests/gclient_scm_test.py

Issue 543012: Add the capability to filter out files on try job with regexp. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « scm.py ('k') | tests/scm_unittest.py » ('j') | trychange.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright 2008-2009 Google Inc. All Rights Reserved. 3 # Copyright 2008-2009 Google Inc. All Rights Reserved.
4 # 4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License. 6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at 7 # You may obtain a copy of the License at
8 # 8 #
9 # http://www.apache.org/licenses/LICENSE-2.0 9 # http://www.apache.org/licenses/LICENSE-2.0
10 # 10 #
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 SuperMoxBaseTestBase.setUp(self) 354 SuperMoxBaseTestBase.setUp(self)
355 355
356 def tearDown(self): 356 def tearDown(self):
357 SuperMoxBaseTestBase.tearDown(self) 357 SuperMoxBaseTestBase.tearDown(self)
358 shutil.rmtree(self.root_dir) 358 shutil.rmtree(self.root_dir)
359 359
360 def testDir(self): 360 def testDir(self):
361 members = [ 361 members = [
362 'COMMAND', 'Capture', 'CaptureStatus', 'FetchUpstreamTuple', 362 'COMMAND', 'Capture', 'CaptureStatus', 'FetchUpstreamTuple',
363 'GenerateDiff', 'GetBranch', 'GetBranchRef', 'GetCheckoutRoot', 363 'GenerateDiff', 'GetBranch', 'GetBranchRef', 'GetCheckoutRoot',
364 'GetEmail', 'GetPatchName', 'GetSVNBranch', 364 'GetDifferentFiles', 'GetEmail', 'GetPatchName', 'GetSVNBranch',
365 'GetUpstream', 'IsGitSvn', 'RunAndFilterOutput', 'ShortBranchName', 365 'GetUpstream', 'IsGitSvn', 'RunAndFilterOutput', 'ShortBranchName',
366 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert', 366 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert',
367 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', 367 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url',
368 ] 368 ]
369 369
370 # If you add a member, be sure to add the relevant test! 370 # If you add a member, be sure to add the relevant test!
371 self.compareMembers(gclient_scm.CreateSCM(url=self.url), members) 371 self.compareMembers(gclient_scm.CreateSCM(url=self.url), members)
372 372
373 def testRevertMissing(self): 373 def testRevertMissing(self):
374 if not self.enabled: 374 if not self.enabled:
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 relpath=self.relpath) 531 relpath=self.relpath)
532 rev_info = scm.revinfo(options, (), None) 532 rev_info = scm.revinfo(options, (), None)
533 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') 533 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458')
534 534
535 535
536 if __name__ == '__main__': 536 if __name__ == '__main__':
537 import unittest 537 import unittest
538 unittest.main() 538 unittest.main()
539 539
540 # vim: ts=2:sw=2:tw=80:et: 540 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « scm.py ('k') | tests/scm_unittest.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698