Jason Lowe-Power has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/17451

Change subject: tests,ext: Add skip_cleanup implementation for TempdirFixture
......................................................................

tests,ext: Add skip_cleanup implementation for TempdirFixture

Change-Id: Idc5ec9309a4ef3c0ad0c7e8b2df47294acc97ec4
Signed-off-by: Jason Lowe-Power <ja...@lowepower.com>
---
M ext/testlib/fixture.py
M tests/gem5/fixture.py
2 files changed, 11 insertions(+), 0 deletions(-)



diff --git a/ext/testlib/fixture.py b/ext/testlib/fixture.py
index ffff54c..be89244 100644
--- a/ext/testlib/fixture.py
+++ b/ext/testlib/fixture.py
@@ -98,6 +98,13 @@
     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):
     '''
diff --git a/tests/gem5/fixture.py b/tests/gem5/fixture.py
index df834ef..9d9319c 100644
--- a/tests/gem5/fixture.py
+++ b/tests/gem5/fixture.py
@@ -55,6 +55,10 @@
         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):
     '''

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/17451
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Idc5ec9309a4ef3c0ad0c7e8b2df47294acc97ec4
Gerrit-Change-Number: 17451
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Lowe-Power <ja...@lowepower.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to