Skip to content

Commit

Permalink
tests/storage-vm: discard v1/snap0 as soon as unneeded (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Nov 14, 2024
2 parents d9c5d1f + 8fd847f commit fe45a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ for poolDriver in $poolDriverList; do

echo "==> Checking running migrated VM snapshot (different storage pool)"
lxc copy v1/snap0 localhost:v2 -s "${poolName}2"
lxc delete v1/snap0
lxc start v2
waitInstanceReady v2
[ "$(lxc exec v2 -- cat /root/foo.txt)" = "foo" ]
Expand All @@ -253,7 +254,6 @@ for poolDriver in $poolDriverList; do
waitInstanceReady v2

lxc delete -f v2
lxc delete v1/snap0
lxc remote rm localhost
lxc config trust rm "$(lxc query /1.0/certificates?recursion=1 | jq -r '.[].fingerprint')"
lxc storage delete "${poolName}2"
Expand Down

0 comments on commit fe45a14

Please sign in to comment.