commit
ba96890aae
@ -28,6 +28,11 @@ class ShellTest(utils.TestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
os.environ = self.old_environment
|
os.environ = self.old_environment
|
||||||
|
# For some method like test_image_meta_bad_action we are
|
||||||
|
# testing a SystemExit to be thrown and object self.shell has
|
||||||
|
# no time to get instantatiated which is OK in this case, so
|
||||||
|
# we make sure the method is there before launching it.
|
||||||
|
if hasattr(self.shell, 'cs'):
|
||||||
self.shell.cs.clear_callstack()
|
self.shell.cs.clear_callstack()
|
||||||
|
|
||||||
def run_command(self, cmd):
|
def run_command(self, cmd):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user