From b29b9473b32ec15aabf3837450f0012501f65baf Mon Sep 17 00:00:00 2001 From: AllyW Date: Thu, 12 Sep 2024 17:36:02 +0800 Subject: [PATCH] fix profile options (#473) --- HISTORY.rst | 4 ++++ azdev/__init__.py | 2 +- azdev/params.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index c887e77f..c9dd70c0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +0.1.79 +++++++ +* Fix profile options + 0.1.78 ++++++ * Mitigate shell injection risk from user input. diff --git a/azdev/__init__.py b/azdev/__init__.py index e978f428..93031788 100644 --- a/azdev/__init__.py +++ b/azdev/__init__.py @@ -4,4 +4,4 @@ # license information. # ----------------------------------------------------------------------------- -__VERSION__ = '0.1.78' +__VERSION__ = '0.1.79' diff --git a/azdev/params.py b/azdev/params.py index 1c44e55f..5f1071b9 100644 --- a/azdev/params.py +++ b/azdev/params.py @@ -50,7 +50,7 @@ def load_arguments(self, _): help="Space-separated list of tests to run. Can specify module or extension names, test filenames, class name or individual method names. " "Omit to check all or use 'CLI' or 'EXT' to check only CLI modules or extensions respectively.", completer=get_test_completion) - c.argument('profile', options_list='--profile', choices=['latest', '2017-03-09-profile', '2018-03-01-hybrid', '2019-03-01-hybrid', '2020-09-01-profile'], help='Run automation against a specific profile. If omit, the tests will run against current profile.') + c.argument('profile', options_list='--profile', choices=['latest', '2017-03-09-profile', '2018-03-01-hybrid', '2019-03-01-hybrid', '2020-09-01-hybrid'], help='Run automation against a specific profile. If omit, the tests will run against current profile.') c.argument('pytest_args', nargs=argparse.REMAINDER, options_list=['--pytest-args', '-a'], help='Denotes the remaining args will be passed to pytest.') c.argument('last_failed', options_list='--lf', action='store_true', help='Re-run the last tests that failed.') c.argument('no_exit_first', options_list='--no-exitfirst', action='store_true', help='Do not exit on first error or failed test')