Skip to content
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

[pfcwd]: Configuration commands #147

Merged
merged 1 commit into from
Nov 9, 2017

Conversation

marian-pritsak
Copy link
Collaborator

Add 'start/stop' commands
Create 'show' group
Move 'stats' to 'show' and add 'show config'

Signed-off-by: marian-pritsak [email protected]

Add 'start/stop' commands
Create 'show' group
Move 'stats' to 'show' and add 'show config'

Signed-off-by: marian-pritsak <[email protected]>
@marian-pritsak
Copy link
Collaborator Author

marian-pritsak commented Nov 8, 2017

Depends on: sonic-net/sonic-swss#374

@lguohan lguohan merged commit e87bb97 into sonic-net:master Nov 9, 2017
vdahiya12 pushed a commit to vdahiya12/sonic-utilities that referenced this pull request Jul 23, 2021
…t test coverage (sonic-net#147)

- Refactor ledd to allow for more thorough unit testing
    - Remove infinite loop from `run()` method to allow unit testing of the method. Instead, call the `run()` method in an infinite loop in `main()`
- Increase overall ledd unit test coverage from 48% to 93%.

Previous unit test coverage:

```
----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name           Stmts   Miss  Cover
----------------------------------
scripts/ledd      66     34    48%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
```

Unit test coverage with this patch:

```
----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name           Stmts   Miss  Cover
----------------------------------
scripts/ledd      72      5    93%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml
```
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
This PR provides the support for error checking the returned values from eeprom read for sonic_y_cable, particularly if garbage/non expected value/values are returned.
What is the motivation for this PR?
support for error checking the returned values from eeprom read for sonic_y_cable, particularly if garbage/non expected values are returned.
How did you do it?
added code after read_eeprom api's to validate the returned values.
Signed-off-by: vaibhav-dahiya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants