From bc3c1a6907cab67d3df6a045b6d4012fa954c2be Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Sat, 2 May 2026 13:57:56 +0200 Subject: [PATCH] nixos/tests/incus: update to new syntax Currently only a warning. --- nixos/tests/incus/incus-tests-module.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/tests/incus/incus-tests-module.nix b/nixos/tests/incus/incus-tests-module.nix index 69b0d3c13825..cf62d6037470 100644 --- a/nixos/tests/incus/incus-tests-module.nix +++ b/nixos/tests/incus/incus-tests-module.nix @@ -142,11 +142,11 @@ in server.succeed("systemctl start incus") with subtest("[${image_id}] CPU limits can be managed"): - server.set_instance_config(instance_name, "limits.cpu 1", restart=True) + server.set_instance_config(instance_name, "limits.cpu=1", restart=True) server.wait_instance_exec_success(instance_name, "nproc | grep '^1$'", timeout=90) with subtest("[${image_id}] CPU limits can be hotplug changed"): - server.set_instance_config(instance_name, "limits.cpu 2") + server.set_instance_config(instance_name, "limits.cpu=2") server.wait_instance_exec_success(instance_name, "nproc | grep '^2$'", timeout=90) with subtest("[${image_id}] exec has a valid path"): @@ -195,7 +195,7 @@ in # TODO troubleshoot VM hot memory resizing which was introduced in 6.12 with subtest("[${image_id}] memory limits can be hotplug changed"): - server.set_instance_config(instance_name, "limits.memory 512MB") + server.set_instance_config(instance_name, "limits.memory=512MB") # can't use lsmem since it sees the host's memory size server.wait_instance_exec_success(instance_name, "grep 'MemTotal:[[:space:]]*500000 kB' /proc/meminfo", timeout=1) @@ -244,7 +244,7 @@ in # python '' with subtest("[${image_id}] memory limits can be managed"): - server.set_instance_config(instance_name, "limits.memory 384MB", restart=True) + server.set_instance_config(instance_name, "limits.memory=384MB", restart=True) lsmem = json.loads(server.instance_succeed(instance_name, "lsmem --json")) memsize = lsmem["memory"][0]["size"] assert memsize == "384M", f"failed to manage memory limit. {memsize} != 384M"