Unit test: fix bugs on a few unit tests on aarch64#1202
Conversation
|
Hi @Pennyzct - The ppc64le-specific Travis build is still complaining about a couple of issues: |
|
Hi~ @jodh-intel I'm kind of confused. Those generic* functions are like a template for all arch. you can choose to use or do your own arch-specific implementation, just like func |
|
/retest |
|
Hi~ @jodh-intel @grahamwhaley @sameo Do we need to put |
487ea1c to
389495a
Compare
|
/retest |
e670203 to
70a719a
Compare
|
/retest |
|
/retest |
|
Hi~ @jodh-intel @grahamwhaley @sameo @teawater all former static check errors haven been eliminated. I will /retest to see if it reproduces itself. |
|
/retest |
…o file argument struct TestDataa in generic func genericTestGetCPUDetails is repeatedly defined in almost all arch-dependent .go file, cli/kata-check_amd64_test.go, cli/kata-check_ppc64le_test.go, etcm, except arm64. let's only declare it once in cli/kata-check_test.go. change its name to testCPUDetail for better understanding. Fixes: kata-containers#1200 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
refine a set of test functions under qemu_arm64_test.go. e.g. test func for memoryTopology shouldn't be the same one on amd64, since for now, we don't support nvdimm on arm64. Fixes: kata-containers#1200 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
|
/retest |
original tests for func RunningOnVMM are sort of amd64-specific, since all other archs don't support nested VMM for now. Fixes: kata-containers#1200 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
since generic func genericAppendBridges and genericBridges is also applied for machine type QemuVirt, we use it as implementation for appendBridges and bridges on aarch64. since const defaultPCBridgeBus is used in generic func genericAppendBridges for pc machine, we should define it once in generic file, instead of redefining it in different arch-specific files. Fixes: kata-containers#1200 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
since all generic* could bring unused linter warnings, which lead to CI crash, we add nolint comment to avoid them. Fixes: kata-containers#1200 Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Penny Zheng <penny.zheng@arm.com>
|
/retest |
refine struct testData in func TestGetCPUDetails to remove redundant /unused struct field expectedVendor and expectedModel Fixes: kata-containers#1200 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
|
/retest |
|
Hi~ @jodh-intel @grahamwhaley @sameo finally, i got almost all green on this PR, especially, ARM CI has entirely passed all tests. ;). ptal. |
|
I see that the vsock job failed 2 times on the cpu hot-plug tests, but your changes seem unrelated: http://jenkins.katacontainers.io/job/kata-containers-runtime-fedora-vsocks-PR/217/consoleText Any idea @devimc |
|
Hi~ I get all green here.;). Could anyone give it a review? thanks a lot! @jodh-intel @grahamwhaley @sameo @chavafg @devimc |
grahamwhaley
left a comment
There was a problem hiding this comment.
nice set of fixes.
I see @sameo SoB on at least one of the patches, so I'd like to see his ack here.
Description of problem
There existed some bugs on a few unit tests on aarch64, and I will fix them one by one.