From 5c078eb1d24bd03ff248b482e50afde02f85a8cf Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Tue, 21 May 2024 05:51:54 -0400 Subject: [PATCH] squash: extend test --- tests/unit/provision/mrack/test_hw.py | 12 ++++++++++-- tests/unit/test_hardware.py | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/unit/provision/mrack/test_hw.py b/tests/unit/provision/mrack/test_hw.py index ddf0f66589..1a7bf916fa 100644 --- a/tests/unit/provision/mrack/test_hw.py +++ b/tests/unit/provision/mrack/test_hw.py @@ -132,9 +132,17 @@ def test_maximal_constraint(root_logger: Logger) -> None: '_value': 'smep' } } - } + }, ] - } + }, + { + 'cpu': { + 'hyper': { + '_op': '==', + '_value': 'True' + } + } + }, ] }, { diff --git a/tests/unit/test_hardware.py b/tests/unit/test_hardware.py index e6b001640b..8ddef597ce 100644 --- a/tests/unit/test_hardware.py +++ b/tests/unit/test_hardware.py @@ -189,6 +189,7 @@ def test_normalize_invalid_hardware( - avx - "= avx2" - "!= smep" + hyper-threading: true device: device-name: '~ .*Thunderbolt.*' device: 79 @@ -263,6 +264,7 @@ def test_parse_maximal_constraint() -> None: - cpu.flag: contains avx - cpu.flag: contains avx2 - cpu.flag: not contains smep + - cpu.hyper-threading: == True - and: - device.vendor: '> 97' - device.device: == 79