summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/gem5/fixture.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem5/fixture.py b/tests/gem5/fixture.py
index df834ef75..9d9319c1e 100644
--- a/tests/gem5/fixture.py
+++ b/tests/gem5/fixture.py
@@ -55,6 +55,10 @@ class TempdirFixture(Fixture):
if self.path is not None:
shutil.rmtree(self.path)
+ def skip_cleanup(self):
+ # Set path to none so it's not deleted
+ self.path = None
+
class SConsFixture(Fixture):
'''