-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filter-fdb] Call Filter FDB Main From Within Test Code #1051
[filter-fdb] Call Filter FDB Main From Within Test Code #1051
Conversation
Code coverage requires that python code be run with the same process. Current test code was invoking filter fdb via shell which launches new process and so coverage is not available. This PR calles the main method from within test code. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
can you fix the build error? |
in this case, it probably better to move this script as a console script. check out here. https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html |
ea01c88
to
6d507f5
Compare
This pull request introduces 4 alerts when merging ede5e98 into a15b6bf - view on LGTM.com new alerts:
|
looks like build failure. |
This pull request introduces 1 alert when merging 5a77fca93fc2671f01da4a8767caf8e94e9d5937 into 37f131e - view on LGTM.com new alerts:
|
5a77fca
to
3a00245
Compare
Code coverage requires that python code be run with the same process. Current test code was invoking filter fdb via shell which launches new process and so coverage is not available. This PR calls the main method from within test code. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
* [filter-fdb] Call Filter FDB Main From Within Test Code (#1051) Code coverage requires that python code be run with the same process. Current test code was invoking filter fdb via shell which launches new process and so coverage is not available. This PR calls the main method from within test code. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com> * [filter-fdb] Fix Filter FDB With IPv6 Present in Config DB (#1059) Filter fdb was wiping out IPv4 entries when both IPv4 and IPv6 are associated with VLan interface. The reason is IPv6 network was overwriting IPv4 network. This pr add support to filter both IPv4 and IPv6 addresses signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
Code coverage requires that python code be run with the same process. Current test code was invoking filter fdb via shell which launches new process and so coverage is not available. This PR calls the main method from within test code. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
Code coverage requires that python code be run with the same process.
Current test code was invoking filter fdb via shell which launches
new process and so coverage is not available. This PR calls
the main method from within test code.
signed-off-by: Tamer Ahmed tamer.ahmed@microsoft.com
- What I did
Change how main function is invoked
- How I did it
code refactor
- How to verify it
unit test passes
- Previous command output (if the output of a command-line utility has changed)
N/A
- New command output (if the output of a command-line utility has changed)
N/A