mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
The testbed prepare code downloads some snaps to /tmp and subsequently copies them to /var/lib/snapd/snap where they can be reused by `snap install` operations. This patch changes that to use $TESTLIB/cache which may be present locally and may already have the required files, thus cutting a significant chunk of network traffic. Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Any snap files present in this directory will be reused for tests and will save bandwidth. This is cost-effective when using qemu back-end as LAN bandwidth is faster and cheaper than internet traffic.