mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-19 01:46:15 +02:00
Feature: add cpuset option
Signed-off-by: Romain Gasquet <romain.gasquet@neutron.fr>
This commit is contained in:
@@ -612,3 +612,21 @@ class TestContainerToArgs(unittest.IsolatedAsyncioTestCase):
|
||||
"busybox",
|
||||
],
|
||||
)
|
||||
|
||||
async def test_cpuset(self):
|
||||
c = create_compose_mock()
|
||||
cnt = get_minimal_container()
|
||||
cnt["cpuset"] = "0-1"
|
||||
|
||||
args = await container_to_args(c, cnt)
|
||||
self.assertEqual(
|
||||
args,
|
||||
[
|
||||
"--name=project_name_service_name1",
|
||||
"-d",
|
||||
"--network=bridge:alias=service_name",
|
||||
"--cpuset-cpus",
|
||||
"0-1",
|
||||
"busybox",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user