aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/core/task.py
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-16 09:37:16 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-16 09:37:16 +0000
commit369167b989da80b777e3c3f165f5965cca97bf0e (patch)
treeffc585cc036a061b080f436515c09a9437c26b4d /yardstick/benchmark/core/task.py
parent67b8280f53646fb268bc1e2fbe166173419bbd88 (diff)
parenta595d2331df4b85046208c6e13d3933597b7d149 (diff)
Merge "Context improvement: add support for configing node environment"
Diffstat (limited to 'yardstick/benchmark/core/task.py')
-rw-r--r--yardstick/benchmark/core/task.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index 5a52cdb11..522ad4d23 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -85,7 +85,7 @@ class Task(object): # pragma: no cover
# (hide it for exit handler)
Context.list = []
else:
- for context in Context.list:
+ for context in Context.list[::-1]:
context.undeploy()
Context.list = []
one_task_end_time = time.time()
@@ -348,7 +348,7 @@ def atexit_handler():
if len(Context.list) > 0:
print("Undeploying all contexts")
- for context in Context.list:
+ for context in Context.list[::-1]:
context.undeploy()