test_WrongCommand

Summary

Status:

✅ Passed

Duration:

00:00:00.398

Testsuite:

Commands

Standard Output

--------------------------------- Captured Log ---------------------------------

--------------------------------- Captured Out ---------------------------------


STDERR: ----------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyEDAA/OutputFilter/CLI/__init__.py", line 141, in main
    program.Run()
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyEDAA/OutputFilter/CLI/__init__.py", line 94, in Run
    ArgParseHelperMixin.Run(self)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyTooling/Attributes/ArgParse/__init__.py", line 500, in Run
    self._ParseArguments()
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyTooling/Attributes/ArgParse/__init__.py", line 519, in _ParseArguments
    parsed, args = self._mainParser.parse_known_args()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 1911, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 2131, in _parse_known_args
    stop_index = consume_positionals(start_index)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 2087, in consume_positionals
    take_action(action, args)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 1967, in take_action
    argument_values = self._get_values(action, argument_strings)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 2516, in _get_values
    self._check_value(action, value[0])
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/argparse.py", line 2563, in _check_value
    raise ArgumentError(action, msg % args)
argparse.ArgumentError: argument {vivado,help,version}: invalid choice: 'dummy' (choose from 'vivado', 'help', 'version')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.11.9/x64/bin/pyedaa-outputfilter", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyEDAA/OutputFilter/CLI/__init__.py", line 158, in main
    program.PrintException(ex)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyTooling/TerminalUI/__init__.py", line 442, in PrintException
    self.WriteLineToStdErr(message.format(indent=self.INDENT, indent2=self.INDENT*2, **self.FOREGROUND))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'vivado,help,version'

Standard Error

--------------------------------- Captured Err ---------------------------------