diff --git a/core/src/epicli/cli/engine/spec/SpecCommand.py b/core/src/epicli/cli/engine/spec/SpecCommand.py index af9449c1c4..5e1085edaa 100644 --- a/core/src/epicli/cli/engine/spec/SpecCommand.py +++ b/core/src/epicli/cli/engine/spec/SpecCommand.py @@ -53,9 +53,13 @@ def run(self, spec_output, inventory, user, key, group): if sp.returncode != 0: raise Exception(f'Error running: "{cmd}"') else: - self.logger.info(f'Done running: "{cmd}"') + self.logger.info(f'Done running: "{cmd}"') @staticmethod def get_spec_groups(): - return os.listdir(SPEC_TEST_PATH + '/spec') + groups = os.listdir(SPEC_TEST_PATH + '/spec') + groups.remove('spec_helper.rb') + groups = ['all'] + groups + sorted(groups, key=str.lower) + return groups \ No newline at end of file diff --git a/core/src/epicli/cli/epicli.py b/core/src/epicli/cli/epicli.py index f48d2d8655..fe4df1e163 100644 --- a/core/src/epicli/cli/epicli.py +++ b/core/src/epicli/cli/epicli.py @@ -226,7 +226,8 @@ def test_parser(subparsers): sub_parser = subparsers.add_parser('test', description='Test a cluster from build artifacts.') sub_parser.add_argument('-b', '--build', dest='build_directory', type=str, required=True, help='Absolute path to directory with build artifacts.') - sub_parser.add_argument('-g', '--group', choices=['all'] + SpecCommand.get_spec_groups(), default='all', action='store', dest='group', required=False, + group_list = '{' + ', '.join(SpecCommand.get_spec_groups()) + '}' + sub_parser.add_argument('-g', '--group', choices=SpecCommand.get_spec_groups(), default='all', action='store', dest='group', required=False, metavar=group_list, help='Group of tests to be run, e.g. kafka.') def run_test(args):