From d30de8ecee8532c5cbc9eefec1cbf435cfeffa88 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 28 Apr 2021 11:34:23 +0200 Subject: [PATCH] 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 --- tests/integration.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index c62b483ce..4709625a6 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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();