Skip to content

Commit

Permalink
test/suites/add: use output comparison instead of grep
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Apr 21, 2024
1 parent 9cfb997 commit 3874be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microcloud/test/suites/add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test_add_auto() {
lxc exec "${m}" -- lxc list > /dev/null 2>&1 || true

# Ensure we created no storage devices.
lxc exec "${m}" -- lxc storage ls -f csv | wc -l | grep -qxF 0
[ "$(lxc exec "${m}" -- lxc storage ls -f csv | wc -l)" = "0" ]
done

# Test with all systems.
Expand Down Expand Up @@ -67,7 +67,7 @@ test_add_auto() {
lxc exec "${m}" -- lxc list > /dev/null 2>&1 || true

# Ensure we created no storage devices.
lxc exec "${m}" -- lxc storage ls -f csv | wc -l | grep -qxF 0
[ "$(lxc exec "${m}" -- lxc storage ls -f csv | wc -l)" = "0" ]
done

# Test with ZFS and Ceph disks.
Expand Down

0 comments on commit 3874be5

Please sign in to comment.