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

Unified Diff: tests/trychange_unittest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/scm_unittest.py ('k') | trychange.py » ('j') | trychange.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/trychange_unittest.py
diff --git a/tests/trychange_unittest.py b/tests/trychange_unittest.py
index dafeaa57c2eaaf92e3cd311a95ac053031671fb3..ebd72b84a83fcaec67b32ddc882f21d9e3f130c1 100644
--- a/tests/trychange_unittest.py
+++ b/tests/trychange_unittest.py
@@ -33,6 +33,7 @@ class TryChangeTestsBase(SuperMoxTestBase):
self.options.diff = None
self.options.name = None
self.options.email = None
+ self.options.exclude = []
class TryChangeUnittest(TryChangeTestsBase):
@@ -43,7 +44,7 @@ class TryChangeUnittest(TryChangeTestsBase):
'HELP_STRING', 'InvalidScript', 'NoTryServerAccess', 'PrintSuccess',
'SCM', 'SVN', 'TryChange', 'USAGE',
'breakpad', 'datetime', 'errno', 'gclient_utils', 'getpass', 'logging',
- 'optparse', 'os', 'posixpath', 'scm', 'shutil', 'sys', 'tempfile',
+ 'optparse', 'os', 'posixpath', 're', 'scm', 'shutil', 'sys', 'tempfile',
'urllib',
]
# If this test fails, you should add the relevant test.
@@ -90,6 +91,7 @@ class GITUnittest(TryChangeTestsBase):
trychange.scm.GIT.GetCheckoutRoot(self.fake_root).AndReturn(self.fake_root)
trychange.scm.GIT.GenerateDiff(self.fake_root,
full_move=True,
+ files=['foo.txt', 'bar.txt'],
branch=None).AndReturn('A diff')
trychange.scm.GIT.GetPatchName(self.fake_root).AndReturn('bleh-1233')
trychange.scm.GIT.GetEmail(self.fake_root).AndReturn('georges@example.com')
« no previous file with comments | « tests/scm_unittest.py ('k') | trychange.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698