diff options
Diffstat (limited to 'qtip')
-rw-r--r-- | qtip/__init__.py | 0 | ||||
-rw-r--r-- | qtip/cli/commands/cmd_ansible.py (renamed from qtip/cli/commands/ansible.py) | 0 | ||||
-rw-r--r-- | qtip/cli/commands/cmd_perftest.py (renamed from qtip/cli/commands/perftest.py) | 0 | ||||
-rw-r--r-- | qtip/cli/commands/cmd_suite.py (renamed from qtip/cli/commands/suite.py) | 0 | ||||
-rw-r--r-- | qtip/utils/args_handler.py | 8 | ||||
-rw-r--r-- | qtip/utils/cli.py | 4 |
6 files changed, 6 insertions, 6 deletions
diff --git a/qtip/__init__.py b/qtip/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/qtip/__init__.py diff --git a/qtip/cli/commands/ansible.py b/qtip/cli/commands/cmd_ansible.py index 001185a3..001185a3 100644 --- a/qtip/cli/commands/ansible.py +++ b/qtip/cli/commands/cmd_ansible.py diff --git a/qtip/cli/commands/perftest.py b/qtip/cli/commands/cmd_perftest.py index 0eb6d062..0eb6d062 100644 --- a/qtip/cli/commands/perftest.py +++ b/qtip/cli/commands/cmd_perftest.py diff --git a/qtip/cli/commands/suite.py b/qtip/cli/commands/cmd_suite.py index 757f11a1..757f11a1 100644 --- a/qtip/cli/commands/suite.py +++ b/qtip/cli/commands/cmd_suite.py diff --git a/qtip/utils/args_handler.py b/qtip/utils/args_handler.py index 879fd204..513309ab 100644 --- a/qtip/utils/args_handler.py +++ b/qtip/utils/args_handler.py @@ -21,13 +21,13 @@ def get_files_in_suite(suite_name, case_type='all'): def get_files_in_test_plan(lab, suite_name, case_type='all'): - test_case_all = os.listdir('./test_plan/{0}/{1}'.format(lab, suite_name)) + test_case_all = os.listdir('benchmarks/test_plan/{0}/{1}'.format(lab, suite_name)) return test_case_all if case_type == 'all' else \ filter(lambda x: case_type in x, test_case_all) def get_benchmark_path(lab, suit, benchmark): - return './test_plan/{0}/{1}/{2}'.format(lab, suit, benchmark) + return 'benchmarks/test_plan/{0}/{1}/{2}'.format(lab, suit, benchmark) def check_suite(suite_name): @@ -35,11 +35,11 @@ def check_suite(suite_name): def check_lab_name(lab_name): - return True if os.path.isdir('test_plan/' + lab_name) else False + return True if os.path.isdir('benchmarks/test_plan/' + lab_name) else False def check_benchmark_name(lab, file, benchmark): - return os.path.isfile('test_plan/' + lab + '/' + file + '/' + benchmark) + return os.path.isfile('benchmarks/test_plan/' + lab + '/' + file + '/' + benchmark) def _get_f_name(test_case_path): diff --git a/qtip/utils/cli.py b/qtip/utils/cli.py index def70061..c0a14214 100644 --- a/qtip/utils/cli.py +++ b/qtip/utils/cli.py @@ -23,7 +23,7 @@ class Cli: parser = argparse.ArgumentParser() parser.add_argument('-l ', '--lab', required=True, help='Name of Lab ' 'on which being tested, These can' - 'be found in the test_plan/ directory. Please ' + 'be found in the benchmarks/test_plan/ directory. Please ' 'ensure that you have edited the respective files ' 'before using them. For testing other than through Jenkins' ' The user should list default after -l . all the fields in' @@ -49,7 +49,7 @@ class Cli: sys.exit(1) if not args_handler.check_lab_name(args.lab): - logger.error("You have specified a lab that is not present under test_plan/.\ + logger.error("You have specified a lab that is not present under benchmarks/test_plan/.\ Please enter correct file. If unsure how to proceed, use -l default.") sys.exit(1) suite = args.file |