Skip to content

[201911] multi-asic changes for sfputil #117

Merged
abdosi merged 1 commit intosonic-net:201911from
judyjoseph:201911
Sep 5, 2020
Merged

[201911] multi-asic changes for sfputil #117
abdosi merged 1 commit intosonic-net:201911from
judyjoseph:201911

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