Updating NSBperf to print right testcase 13/44813/1
authorDeepak S <deepak.s@linux.intel.com>
Wed, 11 Oct 2017 09:39:34 +0000 (02:39 -0700)
committerDeepak S <deepak.s@linux.intel.com>
Wed, 11 Oct 2017 10:38:03 +0000 (03:38 -0700)
Change-Id: I7be7bc61624fa14eb552477bdc701a44d65e68b7
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
yardstick/cmd/NSBperf.py

index 2dc0f65..5d0aa74 100755 (executable)
@@ -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)