Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Add "volumeMounts" parameter in Kubernetes context"
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
contexts
/
test_node.py
diff --git
a/yardstick/tests/unit/benchmark/contexts/test_node.py
b/yardstick/tests/unit/benchmark/contexts/test_node.py
index
8b23248
..
b67be37
100644
(file)
--- a/
yardstick/tests/unit/benchmark/contexts/test_node.py
+++ b/
yardstick/tests/unit/benchmark/contexts/test_node.py
@@
-13,6
+13,7
@@
import errno
import mock
from yardstick.common import constants as consts
import mock
from yardstick.common import constants as consts
+from yardstick.benchmark.contexts import base
from yardstick.benchmark.contexts import node
from yardstick.benchmark.contexts import node
@@
-33,9
+34,11
@@
class NodeContextTestCase(unittest.TestCase):
'file': self._get_file_abspath(self.NODES_SAMPLE)
}
'file': self._get_file_abspath(self.NODES_SAMPLE)
}
- def _remove_contexts(self):
- if self.test_context in self.test_context.list:
- self.test_context._delete_context()
+ @staticmethod
+ def _remove_contexts():
+ for context in base.Context.list:
+ context._delete_context()
+ base.Context.list = []
def _get_file_abspath(self, filename):
curr_path = os.path.dirname(os.path.abspath(__file__))
def _get_file_abspath(self, filename):
curr_path = os.path.dirname(os.path.abspath(__file__))