Skip to content

Commit

Permalink
Merge branch 'main' into reenable-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pb8o authored May 13, 2024
2 parents 63eddaa + b755a67 commit 6fd3878
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/integration_tests/functional/test_rng.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@


@pytest.fixture(params=[None])
def uvm_with_rng(uvm_nano, request):
def uvm_with_rng(uvm_plain, request):
"""Fixture of a microvm with virtio-rng configured"""
rate_limiter = request.param
uvm_nano.add_net_iface()
uvm_nano.api.entropy.put(rate_limiter=rate_limiter)
uvm_nano.start()
uvm = uvm_plain
uvm.spawn(log_level="INFO")
uvm.basic_config(vcpu_count=2, mem_size_mib=256)
uvm.add_net_iface()
uvm.api.entropy.put(rate_limiter=rate_limiter)
uvm.start()
# Just stuff it in the microvm so we can look at it later
uvm_nano.rng_rate_limiter = rate_limiter
return uvm_nano
uvm.rng_rate_limiter = rate_limiter
return uvm


def test_rng_not_present(uvm_nano):
Expand Down

0 comments on commit 6fd3878

Please sign in to comment.