Fix fwutil parametrization error#7099
Merged
ZhaohuiS merged 1 commit intosonic-net:masterfrom Dec 24, 2022
Merged
Conversation
SavchukRomanLv
approved these changes
Dec 22, 2022
Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
Contributor
Author
|
@ZhaohuiS |
Contributor
|
@AndriiLozovyi Thanks, this change makes senses. |
ZhaohuiS
approved these changes
Dec 24, 2022
wangxin
pushed a commit
that referenced
this pull request
Dec 29, 2022
What is the motivation for this PR? Fix setup error in platform_tests/fwutil/test_fwutil.py when test suite is executed without argument --fw-pkg How did you do it? How did you verify/test it? Run platform_tests/fwutil/test_fwutil.py without passing --fw-pkg option: PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_show PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_install_bad_name SKIPPED [2] platform_tests/fwutil/test_fwutil.py:123: Command not yet merged into sonic-utilites SKIPPED [6] /var/user/jenkins/sonic-mgmt/tests/platform_tests/fwutil/conftest.py:35: No fw package specified. Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
maksymhedeon
pushed a commit
to githedgehog/sonic-mgmt
that referenced
this pull request
Jan 5, 2023
What is the motivation for this PR? Fix setup error in platform_tests/fwutil/test_fwutil.py when test suite is executed without argument --fw-pkg How did you do it? How did you verify/test it? Run platform_tests/fwutil/test_fwutil.py without passing --fw-pkg option: PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_show PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_install_bad_name SKIPPED [2] platform_tests/fwutil/test_fwutil.py:123: Command not yet merged into sonic-utilites SKIPPED [6] /var/user/jenkins/sonic-mgmt/tests/platform_tests/fwutil/conftest.py:35: No fw package specified. Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
maksymhedeon
pushed a commit
to githedgehog/sonic-mgmt
that referenced
this pull request
Jan 5, 2023
This reverts commit aa48597.
wangxin
pushed a commit
that referenced
this pull request
Mar 24, 2023
What is the motivation for this PR? Fix setup error in platform_tests/fwutil/test_fwutil.py when test suite is executed without argument --fw-pkg How did you do it? How did you verify/test it? Run platform_tests/fwutil/test_fwutil.py without passing --fw-pkg option: PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_show PASSED platform_tests/fwutil/test_fwutil.py::test_fwutil_install_bad_name SKIPPED [2] platform_tests/fwutil/test_fwutil.py:123: Command not yet merged into sonic-utilites SKIPPED [6] /var/user/jenkins/sonic-mgmt/tests/platform_tests/fwutil/conftest.py:35: No fw package specified. Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Andrii-Yosafat Lozovyi [email protected]
Description of PR
Summary: When executing
platform_tests/fwutil/test_fwutil.pywithout passing--fw-pkgargument, 6 test cases fail at setup stage with errors:This happens due to parametrization fixture
fw_pkg_nameis passed as an argument tofw_pkgfixture, and when we don't pass in--fw-pkgoption, TC doesn't create parametrization fixture.With changes from this PR we will create parametrization fixture
fw_pkg_nameeven if we don't use--fw-pkgargument, and TC will be skipped due to -No fw package specified.Fixes #6489
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix setup error in platform_tests/fwutil/test_fwutil.py when test suite is executed without argument --fw-pkg
How did you do it?
How did you verify/test it?
Run
platform_tests/fwutil/test_fwutil.pywithout passing--fw-pkgoption:Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation