From 42d4b8eca3d9be006e74bb10e96b7ca71ae022e7 Mon Sep 17 00:00:00 2001 From: linl Date: Thu, 28 Nov 2024 20:05:27 +0800 Subject: [PATCH] Add virt-what check for system on google cloud. --- os_tests/tests/test_general_check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os_tests/tests/test_general_check.py b/os_tests/tests/test_general_check.py index c043006..631ab7e 100644 --- a/os_tests/tests/test_general_check.py +++ b/os_tests/tests/test_general_check.py @@ -1814,6 +1814,8 @@ def test_check_virtwhat(self): elif 'VMware' in lscpu_output: self.log.info("Found it is a vmware system!") self.assertIn('vmware', virt_what_output) + elif utils_lib.is_gcp(self): + self.assertEqual('google_cloud\nkvm\n', virt_what_output) elif 'KVM' in lscpu_output: if utils_lib.is_ahv(self): self.log.info("Found it is a Nutanix AHV system!")