kata-ctl: Use loop instead of kvm module in tests

This makes it pssible to run the tests in the cost free runners, which
are not KVM capable.

Fixes: #7974 -- part 0

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-09-16 10:06:59 +02:00
parent 46daddc500
commit 2bc3a616ae

View File

@ -539,10 +539,10 @@ mod tests {
},
// Success scenarios
TestData {
module_name: "kvm",
module_name: "loop",
param_name: "",
kernel_module: &KernelModule {
name: "kvm",
name: "loop",
params: &[KernelParam {
name: "nonexistantparam",
value: KernelParamType::Simple("Y"),
@ -552,16 +552,16 @@ mod tests {
result: Ok(()),
},
TestData {
module_name: "kvm",
param_name: "kvmclock_periodic_sync",
module_name: "loop",
param_name: "hw_queue_depth",
kernel_module: &KernelModule {
name: "kvm",
name: "loop",
params: &[KernelParam {
name: "kvmclock_periodic_sync",
value: KernelParamType::Simple("Y"),
name: "hw_queue_depth",
value: KernelParamType::Simple("128"),
}],
},
param_value: "Y",
param_value: "128",
result: Ok(()),
},
];