Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 721 Bytes
summary: Check refresh works with xdelta3 from the core snap
# delta downloads are currently disabled by default on core
systems: [-ubuntu-core-*]
environment:
SNAP_NAME: test-snapd-delta-refresh
prepare: |
echo "Ensure no xdelta3 available on the host"
if [ -e /usr/bin/xdelta3 ]; then
mv /usr/bin/xdelta3{,.disabled}
fi
echo "Given a snap is installed"
snap install --edge $SNAP_NAME
restore: |
if [ -e /usr/bin/xdelta3.disabled ]; then
mv /usr/bin/xdelta3{.disabled,}
fi
execute: |
echo "When the snap is refreshed"
snap refresh --beta $SNAP_NAME
echo "Then deltas are successfully applied"
journalctl -u snapd | MATCH "Successfully applied delta"