Skip to content

Commit

Permalink
test-incus-cgroup: Fix bad cgroup2 path
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Mar 29, 2024
1 parent 9bae497 commit 68b5a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test-incus-cgroup
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ incus launch images:ubuntu/22.04 c1
echo "==> Validate default values"
[ "$(incus exec c1 -- nproc)" = "$(nproc)" ]
[ "$(incus exec c1 -- grep ^MemTotal /proc/meminfo)" = "$(grep ^MemTotal /proc/meminfo)" ]
if [ -e "/sys/fs/cgroup/memory/memory.memsw.limit_in_bytes" ] || [ -e "/sys/fs/cgroup/memory.swap.max" ]; then
if [ -e "/sys/fs/cgroup/memory/memory.memsw.limit_in_bytes" ] || [ -e "/sys/fs/cgroup/system.slice/memory.swap.max" ]; then
[ "$(incus exec c1 -- grep ^SwapTotal /proc/meminfo)" = "$(grep ^SwapTotal /proc/meminfo)" ]
else
[ "$(incus exec c1 -- grep ^SwapTotal /proc/meminfo)" = "SwapTotal: 0 kB" ]
Expand Down

0 comments on commit 68b5a84

Please sign in to comment.