Replies: 3 comments 4 replies
-
its unclear what you are asking for at first glance it seems like you have many pipelines that have a argument thats no longer there - in that case an addoption to make it known + triggering a warning for the deprecation seems necessary |
Beta Was this translation helpful? Give feedback.
-
I think that this should be accomplished by change the implementation of pytest_cmdline_parse hook: However, I did not succeed to find a way to do that, seems related to this #2616 |
Beta Was this translation helpful? Give feedback.
-
closing this as its resolvable by creating a backward compat module which is well within the scope of managing ci pipeliens |
Beta Was this translation helpful? Give feedback.
-
Hi,
We have a use case where we need to ignore unknown parser.addoption(xyz) to support backward compatibility of pipelines.
I didn't find any documentation to avoid failing the test framework if unknown option was added.
I would appreciate your help.
example of failure:
** pytest_addoption - adding additional parameters ** ERROR: usage: _jb_pytest_runner.py [options] [file_or_dir] [file_or_dir] [...] _jb_pytest_runner.py: error: unrecognized arguments: --dina inifile: None rootdir: /Users/mordab/PycharmProjects_BitBucket/orion-tests-core/testsuite/oni/bulk
Beta Was this translation helpful? Give feedback.
All reactions