aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-10-11 02:39:34 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-10-13 13:59:37 -0700
commite1b116d358ca0449b7ec386f5441bdc8c3114e84 (patch)
treeb57fcc60e392a616931ae4e2f878c009b29aa9d1
parentfb275598a75b9e118aaefea83c4e7ad6c99f8156 (diff)
Updating NSBperf to print right testcase
Change-Id: I7be7bc61624fa14eb552477bdc701a44d65e68b7 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
-rwxr-xr-xyardstick/cmd/NSBperf.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/yardstick/cmd/NSBperf.py b/yardstick/cmd/NSBperf.py
index 2dc0f65e7..5d0aa746d 100755
--- a/yardstick/cmd/NSBperf.py
+++ b/yardstick/cmd/NSBperf.py
@@ -150,8 +150,24 @@ class YardstickNSCli(object):
testcases = os.listdir(test_path + vnf)
print(("VNF :(%s)" % vnf))
print("================")
- for testcase in [tc for tc in testcases if "tc_" in tc]:
- print('%s' % testcase)
+ test_cases = [tc for tc in testcases if "tc_" in tc and "template" not in tc]
+
+ print("\tBareMetal Testcase:")
+ print("\t===================")
+ for testcase in [tc for tc in test_cases if "baremetal" in tc]:
+ print("\t%s" % testcase)
+
+ print(os.linesep)
+ print("\tStandalone Virtualization Testcase:")
+ print("\t===================================")
+ for testcase in [tc for tc in test_cases if "ovs" in tc or "sriov" in tc]:
+ print("\t%s" % testcase)
+
+ print(os.linesep)
+ print("\tOpenstack Testcase:")
+ print("\t===================")
+ for testcase in [tc for tc in test_cases if "heat" in tc]:
+ print("\t%s" % testcase)
print(os.linesep)
raise SystemExit(0)