From 4c28149ffa5d09e6fe14952dcaf8df5d0cd8f328 Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Wed, 13 Mar 2019 10:32:07 -0700 Subject: tests,ext: Add skip_cleanup implementation for TempdirFixture Change-Id: Idc5ec9309a4ef3c0ad0c7e8b2df47294acc97ec4 Signed-off-by: Jason Lowe-Power Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17451 Reviewed-by: Andreas Sandberg --- ext/testlib/fixture.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/testlib') 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): ''' -- cgit v1.2.3