Skip to content

Commit

Permalink
test/includes/microcloud: less subshells
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Apr 17, 2024
1 parent 43efe18 commit a07d57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ validate_system_microovn() {
echo "==> ${name} Validating MicroOVN"

lxc remote switch local
lxc exec "${name}" -- sh -ceu "microovn cluster list | grep -q ${name}"
lxc exec "${name}" -- microovn cluster list | grep -q "${name}"
}

# validate_system_lxd_zfs: Ensures the node with the given name has the given disk set up for ZFS storage.
Expand Down Expand Up @@ -275,7 +275,7 @@ validate_system_lxd_ovn() {

# Check that the created UPLINK network has the right DNS servers.
if [ -n "${dns_namesersers}" ] ; then
dns_addresses=$(lxc exec "local:${name}" -- sh -c "lxc network get UPLINK dns.nameservers")
dns_addresses=$(lxc exec "local:${name}" -- lxc network get UPLINK dns.nameservers)
if [ "${dns_addresses}" != "${dns_namesersers}" ] ; then
echo "ERROR: UPLINK network has wrong DNS server addresses: ${dns_addresses}"
return 1
Expand Down

0 comments on commit a07d57f

Please sign in to comment.