Skip to content

Commit

Permalink
tests: Add tests for limits.cpu.pin_strategy and limits.cpu confi…
Browse files Browse the repository at this point in the history
…g and profile settings

Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Oct 21, 2024
1 parent 1a9fc0e commit 5097f38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/suites/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ test_config_profiles() {
lxc profile device list onenic | grep eth0
lxc profile device show onenic | grep p2p

# test setting limits.cpu.pin_strategy at the local config and profile level
! lxc config set c1 limits.cpu.pin_strategy=auto || false
lxc profile set default limits.cpu.pin_strategy=auto
! lxc profile set default limits.cpu=1-2 || false # test adding a cpu limit with limits.cpu.pin_strategy set (should fail)
lxc profile unset default limits.cpu.pin_strategy

# test live-adding a nic
veth_host_name="veth$$"
lxc start foo
Expand Down

0 comments on commit 5097f38

Please sign in to comment.