CLI acommadation to the current test case calling method
[bottlenecks.git] / cli / command_group / testcase.py
1 #!/usr/bin/env python
2 ##############################################################################
3 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 import os
12
13
14 class Testcase(object):
15     """Test command group.
16
17        Set of commnads to execute and list testcases
18     """
19
20     def __init__(self):
21         self.test_case_path = '/home/opnfv/bottlenecks/testsuites/'
22         self.test_case_list = []
23
24     def run(self, testname, noclean=False):
25         os.system('bash /home/opnfv/bottlenecks/run_tests.sh ' + testname)