Skip to content

Commit

Permalink
test: Expect 0 for unsupported usage
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jan 21, 2025
1 parent 89868dd commit 2f6bb0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/suites/storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,8 @@ EOF
# Disable quotas. The usage should be 0.
# shellcheck disable=SC2031
btrfs quota disable "${LXD_DIR}/storage-pools/${pool_name}"
# Usage -1 indicates the driver does not support getting instance usage.
[ "$(lxc query /1.0/instances/c1/state | jq '.disk.root.usage')" = "-1" ]
# Usage 0 indicates the driver does not support getting instance usage.
[ "$(lxc query /1.0/instances/c1/state | jq '.disk.root.usage')" = "0" ]

# Enable quotas. The usage should then be > 0.
# shellcheck disable=SC2031
Expand Down

0 comments on commit 2f6bb0e

Please sign in to comment.