Factored the "continue" command execution of the inferior process as part of the
cleanup before finish into the test fixture in lldbtest.TestBase.tearDown().

Derivatives of TestBase is responsible for setting self.runStarted to True if an
inferior process has been started.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@111188 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/persistent_variables/TestPersistentVariables.py b/test/persistent_variables/TestPersistentVariables.py
index c09c816..8aff13a 100644
--- a/test/persistent_variables/TestPersistentVariables.py
+++ b/test/persistent_variables/TestPersistentVariables.py
@@ -22,6 +22,7 @@
         self.assertTrue(res.Succeeded())
 
         self.ci.HandleCommand("run", res)
+        self.runStarted = True
         self.assertTrue(res.Succeeded(), RUN_STOPPED)
 
         self.ci.HandleCommand("expr int $i = 5; $i + 1", res)
@@ -48,6 +49,7 @@
 
         self.ci.HandleCommand("continue", res)
         self.ci.HandleCommand("quit", res)
+        self.runStarted = False
 
 
 if __name__ == '__main__':