Skip to content

Commit

Permalink
squash: extend test
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily authored and happz committed Jul 25, 2024
1 parent 2c819f2 commit 5c078eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/unit/provision/mrack/test_hw.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,17 @@ def test_maximal_constraint(root_logger: Logger) -> None:
'_value': 'smep'
}
}
}
},
]
}
},
{
'cpu': {
'hyper': {
'_op': '==',
'_value': 'True'
}
}
},
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def test_normalize_invalid_hardware(
- avx
- "= avx2"
- "!= smep"
hyper-threading: true
device:
device-name: '~ .*Thunderbolt.*'
device: 79
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c078eb

Please sign in to comment.