diff options
Diffstat (limited to 'lldb/test/lldbtest.py')
-rw-r--r-- | lldb/test/lldbtest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 1626ca734cc..3bcdd5207e1 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1058,6 +1058,10 @@ class TestBase(Base): # And the result object. self.res = lldb.SBCommandReturnObject() + # Run global pre-flight code, if defined via the config file. + if lldb.pre_flight: + lldb.pre_flight(self) + def tearDown(self): #import traceback #traceback.print_stack() @@ -1079,6 +1083,10 @@ class TestBase(Base): for target in targets: self.dbg.DeleteTarget(target) + # Run global post-flight code, if defined via the config file. + if lldb.post_flight: + lldb.post_flight(self) + del self.dbg def switch_to_thread_with_stop_reason(self, stop_reason): |