File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ def test_kvmclock_ctrl(uvm_plain_any):
161161 time .sleep (5 )
162162 microvm .api .vm .patch (state = "Resumed" )
163163
164- dmesg = microvm .ssh .run ("dmesg" ). stdout
164+ _ , dmesg , _ = microvm .ssh .run ("dmesg" )
165165 assert "rcu_sched self-detected stall on CPU" not in dmesg
166166 assert "rcu_preempt detected stalls on CPUs/tasks" not in dmesg
167167 assert "BUG: soft lockup -" not in dmesg
Original file line number Diff line number Diff line change @@ -25,18 +25,14 @@ def uvm_with_rng(uvm_plain, request):
2525
2626def list_rng_available (ssh_connection : SSHConnection ) -> list [str ]:
2727 """Returns a list of rng devices available in the VM"""
28- return (
29- ssh_connection .check_output ("cat /sys/class/misc/hw_random/rng_available" )
30- .stdout .strip ()
31- .split ()
32- )
28+ _ , stdout , _ = ssh_connection .run ("cat /sys/class/misc/hw_random/rng_available" )
29+ return stdout .strip ().split ()
3330
3431
3532def get_rng_current (ssh_connection : SSHConnection ) -> str :
3633 """Returns the current rng device used by hwrng"""
37- return ssh_connection .check_output (
38- "cat /sys/class/misc/hw_random/rng_current"
39- ).stdout .strip ()
34+ _ , stdout , _ = ssh_connection .run ("cat /sys/class/misc/hw_random/rng_current" )
35+ return stdout .strip ()
4036
4137
4238def assert_virtio_rng_is_current_hwrng_device (ssh_connection : SSHConnection ):
You can’t perform that action at this time.
0 commit comments