Description
TestBuildIsShareableForCompatiblePlatform relies on AssertErrNotContains, which apparently does not test stderr, but stdout.
Since there is never anything on stdout in that case, none of these asserts are doing anything.
Furthermore, the test on a different architecture will only pass if emulation is enabled, but fail otherwise.
Put otherwise, the test right now is doing two things:
- verify that we can build, which is already in another test
- verify that we can build on a different platform, which assumes emulation is installed
It is unclear to me what the test intent is.
Can we clarify?
Thanks.
Tagging @Shubhranshu153
Steps to reproduce the issue
na
Describe the results you received and expected
na
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
Description
TestBuildIsShareableForCompatiblePlatformrelies onAssertErrNotContains, which apparently does not test stderr, but stdout.Since there is never anything on stdout in that case, none of these asserts are doing anything.
Furthermore, the test on a different architecture will only pass if emulation is enabled, but fail otherwise.
Put otherwise, the test right now is doing two things:
It is unclear to me what the test intent is.
Can we clarify?
Thanks.
Tagging @Shubhranshu153
Steps to reproduce the issue
na
Describe the results you received and expected
na
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response