mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 18:02:45 +00:00
ci: the resource-group test ignores the priority overrides
This commit is contained in:
@@ -85,7 +85,12 @@ class WorkspaceTests(unittest.TestCase):
|
||||
|
||||
def test_unix_resource_groups_are_serial_and_leave_windows_alone(self):
|
||||
config = tomllib.loads((ROOT / ".config/nextest.toml").read_text())
|
||||
overrides = config["profile"]["ci"]["overrides"]
|
||||
# The priority overrides (slowest tests first) set no group or platform; only the group
|
||||
# overrides are the resource audit's.
|
||||
overrides = [o for o in config["profile"]["ci"]["overrides"] if "priority" not in o]
|
||||
for o in config["profile"]["ci"]["overrides"]:
|
||||
if "priority" in o:
|
||||
self.assertEqual(set(o), {"filter", "priority"})
|
||||
self.assertEqual(overrides, [
|
||||
{"platform": "cfg(unix)",
|
||||
"filter": "package(craft-ui) | package(craft-keymap) | package(craft-update)",
|
||||
|
||||
Reference in New Issue
Block a user