mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Add reboot validation to VFIO baremetal testing
Make sure the VFIO baremetal tests are still passing correctly after the guest is rebooted. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -5978,6 +5978,19 @@ mod tests {
|
|||||||
);
|
);
|
||||||
|
|
||||||
guest.check_nvidia_gpu();
|
guest.check_nvidia_gpu();
|
||||||
|
|
||||||
|
guest.reboot_linux(0);
|
||||||
|
|
||||||
|
// Run NVIDIA DCGM Diagnostics to validate the device is functional
|
||||||
|
assert_eq!(
|
||||||
|
guest
|
||||||
|
.ssh_command("sudo nv-hostengine && echo ok")
|
||||||
|
.unwrap()
|
||||||
|
.trim(),
|
||||||
|
"ok"
|
||||||
|
);
|
||||||
|
|
||||||
|
guest.check_nvidia_gpu();
|
||||||
});
|
});
|
||||||
|
|
||||||
let _ = child.kill();
|
let _ = child.kill();
|
||||||
|
|||||||
Reference in New Issue
Block a user