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:
Sebastien Boeuf 2021-04-28 11:34:23 +02:00
parent d203c62b42
commit d30de8ecee

View File

@ -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();