@@ -128,8 +128,7 @@ def test_hugetlbfs_diff_snapshot(microvm_factory, uvm_plain, uffd_handler_paths)
128
128
uvm_plain .resume ()
129
129
130
130
# Run command to dirty some pages
131
- rc , _ , _ = uvm_plain .ssh .run ("sync" )
132
- assert not rc
131
+ uvm_plain .ssh .check_output ("sync" )
133
132
134
133
snapshot_diff = uvm_plain .snapshot_diff ()
135
134
snapshot_merged = snapshot_diff .rebase_snapshot (base_snapshot )
@@ -181,13 +180,11 @@ def test_ept_violation_count(
181
180
182
181
# Wait for microvm to boot. Then spawn fast_page_fault_helper to setup an environment where we can trigger
183
182
# a lot of fast_page_faults after restoring the snapshot.
184
- rc , _ , _ = vm .ssh .run (
183
+ vm .ssh .check_output (
185
184
"nohup /usr/local/bin/fast_page_fault_helper >/dev/null 2>&1 </dev/null &"
186
185
)
187
- assert not rc
188
186
189
- rc , pid , _ = vm .ssh .run ("pidof fast_page_fault_helper" )
190
- assert not rc
187
+ _ , pid , _ = vm .ssh .check_output ("pidof fast_page_fault_helper" )
191
188
192
189
# Give the helper time to initialize
193
190
time .sleep (5 )
@@ -211,8 +208,7 @@ def test_ept_violation_count(
211
208
vm .restore_from_snapshot (snapshot , resume = True , uffd_path = SOCKET_PATH )
212
209
213
210
# Verify if guest can run commands, and also wake up the fast page fault helper to trigger page faults.
214
- rc , _ , _ = vm .ssh .run (f"kill -s { signal .SIGUSR1 } { pid } " )
215
- assert not rc
211
+ vm .ssh .check_output (f"kill -s { signal .SIGUSR1 } { pid } " )
216
212
217
213
# Give the helper time to touch all its pages
218
214
time .sleep (5 )
0 commit comments