summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJason Lowe-Power <jason@lowepower.com>2019-03-13 10:32:07 -0700
committerJason Lowe-Power <jason@lowepower.com>2019-03-21 15:57:10 +0000
commit4c28149ffa5d09e6fe14952dcaf8df5d0cd8f328 (patch)
treed7d9028095760d940280d4f6f21d0844e1167ea7 /ext
parentfced86b061b9419b9e44cd79a5af428a453779f3 (diff)
downloadgem5-4c28149ffa5d09e6fe14952dcaf8df5d0cd8f328.tar.xz
tests,ext: Add skip_cleanup implementation for TempdirFixture
Change-Id: Idc5ec9309a4ef3c0ad0c7e8b2df47294acc97ec4 Signed-off-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17451 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/testlib/fixture.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/testlib/fixture.py b/ext/testlib/fixture.py
index ffff54cd8..be8924474 100644
--- a/ext/testlib/fixture.py
+++ b/ext/testlib/fixture.py
@@ -98,6 +98,13 @@ class Fixture(object):
def copy(self):
return copy.deepcopy(self)
+ def skip_cleanup(self):
+ '''
+ If this method is called, then we should make sure that nothing is
+ done when the teardown() function is called.
+ '''
+ pass
+
def globalfixture(fixture):
'''