Skip to content

Commit

Permalink
throttle_parameter_test:fix disk serial issue
Browse files Browse the repository at this point in the history
The disk serial number in the latest Linux guest can
not be displayed in time. Adding some time delay
after booting.

Signed-off-by: qingwangrh <[email protected]>
  • Loading branch information
qingwangrh committed Sep 14, 2024
1 parent 050920b commit 243e2cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qemu/tests/throttle_operation_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""IO-Throttling group and other operation relevant testing"""
import json
import time

from virttest import error_context
from virttest.qemu_monitor import QMPCmdError
Expand Down Expand Up @@ -97,6 +98,7 @@ def operation_snapshot():
vm.verify_alive()

session = vm.wait_for_login(timeout=360)
time.sleep(20)

error_context.context("Deploy fio", test.log.info)
fio = generate_instance(params, vm, 'fio')
Expand Down
3 changes: 3 additions & 0 deletions qemu/tests/throttle_parameter_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import time

from virttest import error_context

from provider.storage_benchmark import generate_instance
Expand All @@ -23,6 +25,7 @@ def run(test, params, env):
vm.verify_alive()

session = vm.wait_for_login(timeout=360)
time.sleep(20)

error_context.context("Deploy fio", test.log.info)
fio = generate_instance(params, vm, 'fio')
Expand Down

0 comments on commit 243e2cc

Please sign in to comment.