| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 atexit | 7 import atexit |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| 11 import tempfile | 11 import tempfile |
| 12 import unittest | 12 import unittest |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 @property | 78 @property |
| 79 def root_dir(self): | 79 def root_dir(self): |
| 80 return self.trial.root_dir | 80 return self.trial.root_dir |
| 81 | 81 |
| 82 | 82 |
| 83 if '-l' in sys.argv: | 83 if '-l' in sys.argv: |
| 84 # See SHOULD_LEAK definition in TrialDir for its purpose. | 84 # See SHOULD_LEAK definition in TrialDir for its purpose. |
| 85 TrialDir.SHOULD_LEAK = True | 85 TrialDir.SHOULD_LEAK = True |
| 86 print 'Leaking!' | 86 print 'Leaking!' |
| 87 sys.argv.remove('-l') | 87 sys.argv.remove('-l') |
| OLD | NEW |