Skip to content

Commit

Permalink
test/suites/basic: 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 3874be5 commit 553379c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions microcloud/test/suites/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ test_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

reset_systems 2 0 1
Expand All @@ -737,7 +737,7 @@ test_auto() {
! lxc exec ${m} -- lxc network ls -f csv | grep -q "^UPLINK," || false

# 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


Expand Down Expand Up @@ -771,7 +771,7 @@ test_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

reset_systems 3 0 1
Expand All @@ -788,7 +788,7 @@ test_auto() {
! lxc exec ${m} -- lxc network ls -f csv | grep -q "^UPLINK," || false

# 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

reset_systems 3 1 1
Expand Down

0 comments on commit 553379c

Please sign in to comment.