]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix cmds clearing in TargetAdminTestCase.
authorEric Harney <eharney@redhat.com>
Thu, 3 Jan 2013 20:08:53 +0000 (15:08 -0500)
committerEric Harney <eharney@redhat.com>
Thu, 3 Jan 2013 20:08:53 +0000 (15:08 -0500)
clear_cmds() should reference self.cmds rather than cmds.

Change-Id: I1d191aee6a713cf9f2b08c46bf47c1959235cc15

cinder/tests/test_iscsi.py

index eafc5301ac8162918cf978151c093f383c65fdbd..a724ad3216fb3e29f509a3403d32c0847c8bf1f6 100644 (file)
@@ -56,7 +56,7 @@ class TargetAdminTestCase(object):
         return "", None
 
     def clear_cmds(self):
-        cmds = []
+        self.cmds = []
 
     def verify_cmds(self, cmds):
         self.assertEqual(len(cmds), len(self.cmds))