Skip to content

Commit

Permalink
Support Azure in test_check_virtwhat (#426)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxin Sun <[email protected]>
  • Loading branch information
yuxisun1217 authored Aug 27, 2024
1 parent 4ea1c34 commit f5d33ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions os_tests/tests/test_general_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,9 @@ def test_check_virtwhat(self):
self.assertIn('xen-hvm', virt_what_output)
else:
self.assertIn('xen-domU', virt_what_output)
elif utils_lib.is_azure(self):
self.log.info("Found it is a Azure system!")
self.assertIn('hyperv', virt_what_output)
elif 'Microsoft' in lscpu_output and not utils_lib.is_metal(self):
self.log.info("Found it is a Hyper-V system!")
self.assertIn('hyperv', virt_what_output)
Expand Down

0 comments on commit f5d33ab

Please sign in to comment.