diff options
author | uael <uael@google.com> | 2023-09-29 09:49:01 -0700 |
---|---|---|
committer | Lucas Abel <22837557+uael@users.noreply.github.com> | 2023-09-29 20:08:53 +0200 |
commit | 5a8736c8997056639a3b3978576d8c8cf5d63ba4 (patch) | |
tree | b4ef0774159b3e56e81f6fce4bbacf35135ada10 /avatar | |
parent | 2e5935f85ef1fe39ff572cfe4e632e9a3fb6694a (diff) | |
download | avatar-5a8736c8997056639a3b3978576d8c8cf5d63ba4.tar.gz |
script: include official test cases by default
Diffstat (limited to 'avatar')
-rw-r--r-- | avatar/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/avatar/__init__.py b/avatar/__init__.py index 6f747ae..15bd6b2 100644 --- a/avatar/__init__.py +++ b/avatar/__init__.py @@ -236,7 +236,7 @@ def args_parser() -> argparse.ArgumentParser: nargs='*', metavar='<PATH>', help='Lits of folder or test file to run', - default=['.'], + default=[], ) parser.add_argument('-c', '--config', type=str, metavar='<PATH>', help='Path to the test configuration file.') parser.add_argument( @@ -271,8 +271,8 @@ def args_parser() -> argparse.ArgumentParser: metavar='[<TEST BED NAME1> <TEST BED NAME2> ...]', help='Specify which test beds to run tests on.', ) - parser.add_argument('-v', '--verbose', action='store_true', help='Set console logger level to DEBUG') + parser.add_argument('-x', '--no-default-cases', action='store_true', help='Dot no include default test cases') return parser @@ -298,6 +298,8 @@ def main(args: Optional[argparse.Namespace] = None) -> None: runner.add_test_beds(argv.test_beds) if argv.verbose: runner.set_logs_verbose() + if not argv.no_default_cases: + runner.add_path(pathlib.Path(__file__).resolve().parent.parent / 'cases') # List tests to standard output. if argv.list: |