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

Side by Side Diff: testing_support/trial_dir.py

Issue 1468983002: trial_dir: remove files after auto-unmocking stuff. (Closed) Base URL: https://chromium.googlesource.com/infra/testing/testing_support.git@master
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 import atexit 6 import atexit
7 import logging 7 import logging
8 import os 8 import os
9 import stat 9 import stat
10 import subprocess 10 import subprocess
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 self.trial.tear_down() 143 self.trial.tear_down()
144 144
145 @property 145 @property
146 def root_dir(self): 146 def root_dir(self):
147 return self.trial.root_dir 147 return self.trial.root_dir
148 148
149 149
150 class TestCase(auto_stub.TestCase, TrialDirMixIn): 150 class TestCase(auto_stub.TestCase, TrialDirMixIn):
151 """Base unittest class that cleans off a trial directory in tearDown().""" 151 """Base unittest class that cleans off a trial directory in tearDown()."""
152 def setUp(self): 152 def setUp(self):
153 TrialDirMixIn.setUp(self)
153 auto_stub.TestCase.setUp(self) 154 auto_stub.TestCase.setUp(self)
154 TrialDirMixIn.setUp(self)
155 155
156 def tearDown(self): 156 def tearDown(self):
157 auto_stub.TestCase.tearDown(self)
157 TrialDirMixIn.tearDown(self) 158 TrialDirMixIn.tearDown(self)
158 auto_stub.TestCase.tearDown(self)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698