From 75190be31211fc5b9af01ae5f558b44d78cf1265 Mon Sep 17 00:00:00 2001 From: Ceping Sun Date: Mon, 22 Jul 2024 04:07:10 -0400 Subject: [PATCH] sh_script: remove un-useful test step Signed-off-by: Ceping Sun --- sh_script/integration_test.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/sh_script/integration_test.py b/sh_script/integration_test.py index 8097ed3..fbcac8d 100644 --- a/sh_script/integration_test.py +++ b/sh_script/integration_test.py @@ -350,7 +350,6 @@ def test_config_A_kill_vtpm_td(): """ 1. Create TDVM with vTPM device - vTPM TD and user TD should be running 2. Kill vtpm-td, check user TD status, tpm command should not work - 3. Relaunch vtpm-td and create instance, check user TD status, tpm command should not work """ cmd = f'tpm2_pcrread sha256' @@ -363,14 +362,6 @@ def test_config_A_kill_vtpm_td(): ctx.terminate_vtpm_td() - LOG.debug(cmd) - runner = ctx.exec_ssh_command(cmd) - assert runner[1] != "", "vTPM is still work after kill vTPM" - - # Relaunch vtpm-td and create instance - ctx.start_vtpm_td() - ctx.execute_qmp() - LOG.debug(cmd) runner = ctx.exec_ssh_command(cmd) assert runner[1] != "", "vTPM is still work after kill vTPM" @@ -918,7 +909,6 @@ def test_config_B_no_sb_kill_vtpm_td(): """ 1. Create TDVM with vTPM device - vTPM TD and user TD should be running 2. Kill vtpm-td, check user TD status, tpm command should not work - 3. Relaunch vtpm-td and create instance, check user TD status, tpm command should not work """ cmd = f'tpm2_pcrread sha256' @@ -931,14 +921,6 @@ def test_config_B_no_sb_kill_vtpm_td(): ctx.terminate_vtpm_td() - LOG.debug(cmd) - runner = ctx.exec_ssh_command(cmd) - assert runner[1] != "", "vTPM is still work after kill vTPM" - - # Relaunch vtpm-td and create instance - ctx.start_vtpm_td() - ctx.execute_qmp() - LOG.debug(cmd) runner = ctx.exec_ssh_command(cmd) assert runner[1] != "", "vTPM is still work after kill vTPM" @@ -1452,7 +1434,6 @@ def test_config_B_sb_kill_vtpm_td(): """ 1. Create TDVM with vTPM device - vTPM TD and user TD should be running 2. Kill vtpm-td, check user TD status, tpm command should not work - 3. Relaunch vtpm-td and create instance, check user TD status, tpm command should not work """ cmd = f'tpm2_pcrread sha256' @@ -1465,14 +1446,6 @@ def test_config_B_sb_kill_vtpm_td(): ctx.terminate_vtpm_td() - LOG.debug(cmd) - runner = ctx.exec_ssh_command(cmd) - assert runner[1] != "", "vTPM is still work after kill vTPM" - - # Relaunch vtpm-td and create instance - ctx.start_vtpm_td() - ctx.execute_qmp() - LOG.debug(cmd) runner = ctx.exec_ssh_command(cmd) assert runner[1] != "", "vTPM is still work after kill vTPM"