Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KVM: Update the TDX basic test case #407

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions KVM/qemu/tdx_basic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
# Don't create/remove guest images
force_create_image = no
remove_image = no
# Automatically start VM
start_vm = yes
start_vm = no
# Stop VM after testing
kill_vm = yes
shell_prompt = "^\[.*\][\#\$]\s*$"
Expand Down
4 changes: 3 additions & 1 deletion KVM/qemu/tests/tdx_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# History: May. 2024 - Xudong Hao - creation

from avocado.utils import process, cpu
from virttest import error_context
from virttest import error_context, env_process
from provider.cpu_utils import check_cpu_flags


Expand Down Expand Up @@ -41,6 +41,8 @@ def run(test, params, env):
if tdx_value != "Y":
test.fail("TDX is not supported in KVM")

params["start_vm"] = "yes"
env_process.preprocess_vm(test, params, env, params["main_vm"])
vm = env.get_vm(params["main_vm"])
vm.verify_alive()
timeout = params.get_numeric("login_timeout", 240)
Expand Down
Loading