mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +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:
parent
d203c62b42
commit
d30de8ecee
@ -5978,6 +5978,19 @@ mod tests {
|
||||
);
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user