@@ -157,7 +157,6 @@ def test_5_snapshots(
157
157
# Create a snapshot from a microvm.
158
158
start_guest_echo_server (vm )
159
159
snapshot = vm .make_snapshot (snapshot_type )
160
- base_snapshot = snapshot
161
160
vm .kill ()
162
161
163
162
for i in range (seq_len ):
@@ -183,20 +182,20 @@ def test_5_snapshots(
183
182
184
183
time .sleep (2 )
185
184
logger .info ("Create snapshot %s #%d." , snapshot_type , i + 1 )
186
- snapshot = microvm .make_snapshot (snapshot_type )
185
+ new_snapshot = microvm .make_snapshot (snapshot_type )
187
186
188
187
# If we are testing incremental snapshots we must merge the base with
189
188
# current layer.
190
189
if snapshot .is_diff :
191
- logger .info ("Base: %s, Layer: %s" , base_snapshot .mem , snapshot .mem )
192
- snapshot = snapshot .rebase_snapshot (
193
- base_snapshot , use_snapshot_editor = use_snapshot_editor
190
+ logger .info ("Base: %s, Layer: %s" , snapshot .mem , new_snapshot .mem )
191
+ new_snapshot = new_snapshot .rebase_snapshot (
192
+ snapshot , use_snapshot_editor = use_snapshot_editor
194
193
)
195
194
196
195
microvm .kill ()
197
196
copied_snapshot .delete ()
198
197
# Update the base for next iteration.
199
- base_snapshot = snapshot
198
+ snapshot = new_snapshot
200
199
201
200
202
201
def test_patch_drive_snapshot (uvm_nano , microvm_factory ):
0 commit comments