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

[201911] multi-asic changes for sfputil #117

Merged
merged 1 commit into from
Sep 5, 2020

Conversation

judyjoseph
Copy link
Contributor

Commit for PR (#100) into 201911 branch

@judyjoseph judyjoseph changed the title [201911] multi-asic changes for platform PR #100 [201911] multi-asic changes for sfputil Sep 5, 2020
@abdosi abdosi merged commit 2d34737 into sonic-net:201911 Sep 5, 2020
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
…onic-net#117)

Previously, psud assumed that the swsscommon library would not be installed in the unit testing environment. This is not a valid assumption, and would cause unit tests to fail if swsscommon was available in the unit test environment, because it would get imported, but there would be no Redis DB to communicate with.

This PR uses environment variables, which are set by the unit tests themselves, to determine whether to load the real or mock libraries. This solution is similar to what is done in sonic-utilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants