Commit 17f9e1f7 authored by maruel@chromium.org's avatar maruel@chromium.org

Add comment to clarify SHOULD_LEAK

NO CODE CHANGE.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6349053

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@73510 0039d316-1c4b-4281-b951-d872f2087c98
parent 26d762d0
......@@ -208,7 +208,10 @@ class FakeReposBase(object):
populateSvn() and populateGit() need to be implemented by the subclass.
"""
# Should leak the repositories.
# When SHOULD_LEAK is set to True, temporary directories created while the
# tests are running aren't deleted at the end of the tests. Expect failures
# when running more than one test due to inter-test side-effects. Helps with
# debugging.
SHOULD_LEAK = False
# Override if unhappy.
TRIAL_DIR = None
......@@ -725,8 +728,8 @@ def main(argv):
return 0
# Kind of hack.
if '-l' in sys.argv:
# See SHOULD_LEAK definition in FakeReposBase for its purpose.
FakeReposBase.SHOULD_LEAK = True
print 'Leaking!'
sys.argv.remove('-l')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment