Skip to content

Commit

Permalink
test/includes/microcloud: use quiet file pushes
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Apr 18, 2024
1 parent 92c13cf commit c97b755
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@ set_debug_binaries() {

if [ -n "${MICROCLOUD_DEBUG_PATH}" ] && [ -n "${MICROCLOUDD_DEBUG_PATH}" ]; then
echo "==> Add debug binaries for MicroCloud."
lxc exec "${name}" -- rm -rf /var/snap/microcloud/common/microcloudd.debug
lxc exec "${name}" -- rm -rf /var/snap/microcloud/common/microcloud.debug
lxc exec "${name}" -- rm -f /var/snap/microcloud/common/microcloudd.debug
lxc exec "${name}" -- rm -f /var/snap/microcloud/common/microcloud.debug

lxc file push "${MICROCLOUDD_DEBUG_PATH}" "${name}"/var/snap/microcloud/common/microcloudd.debug
lxc file push "${MICROCLOUD_DEBUG_PATH}" "${name}"/var/snap/microcloud/common/microcloud.debug
lxc file push --quiet "${MICROCLOUDD_DEBUG_PATH}" "${name}"/var/snap/microcloud/common/microcloudd.debug
lxc file push --quiet "${MICROCLOUD_DEBUG_PATH}" "${name}"/var/snap/microcloud/common/microcloud.debug

lxc exec "${name}" -- systemctl restart snap.microcloud.daemon || true
fi

if [ -n "${LXD_DEBUG_PATH}" ]; then
echo "==> Add a debug binary for LXD."
lxc exec "${name}" -- rm -rf /var/snap/lxd/common/lxd.debug
lxc file push "${LXD_DEBUG_PATH}" "${name}"/var/snap/lxd/common/lxd.debug
lxc exec "${name}" -- rm -f /var/snap/lxd/common/lxd.debug
lxc file push --quiet "${LXD_DEBUG_PATH}" "${name}"/var/snap/lxd/common/lxd.debug
lxc exec "${name}" -- systemctl reload snap.lxd.daemon || true
lxc exec "${name}" -- lxd waitready
fi
Expand Down Expand Up @@ -506,7 +506,7 @@ reset_system() {
lxc start "${name}" || true

if [ -n "${MICROCLOUD_SNAP_PATH}" ]; then
lxc file push "${MICROCLOUD_SNAP_PATH}" "${name}"/root/microcloud.snap
lxc file push --quiet "${MICROCLOUD_SNAP_PATH}" "${name}"/root/microcloud.snap
fi

lxc exec "${name}" -- ip link del lxdfan0 || true
Expand Down Expand Up @@ -955,7 +955,7 @@ setup_system() {
"

if [ -n "${MICROCLOUD_SNAP_PATH}" ]; then
lxc file push "${MICROCLOUD_SNAP_PATH}" "${name}"/root/microcloud.snap
lxc file push --quiet "${MICROCLOUD_SNAP_PATH}" "${name}"/root/microcloud.snap
lxc exec "${name}" -- snap install --devmode /root/microcloud.snap
else
lxc exec "${name}" -- snap install microcloud --channel latest/edge --cohort='+'
Expand Down

0 comments on commit c97b755

Please sign in to comment.