Skip to content

Commit

Permalink
resolving some comments on naming
Browse files Browse the repository at this point in the history
  • Loading branch information
spmcmillan committed Sep 14, 2024
1 parent 89640bd commit 8638b50
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
6 changes: 3 additions & 3 deletions tests/checkbox/checkbox-provider-tdx/units/tests/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ requires:
executable.name == 'qemu-system-x86_64'
command:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
setup-env-and-run test_multiple_boot.py
setup-env-and-run test_boot_multiple.py

id: tdx-stress/td-resource-limits
category_id: tdx-stress
Expand All @@ -93,7 +93,7 @@ requires:
executable.name == 'qemu-system-x86_64'
command:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
setup-env-and-run test_resource_limits.py
setup-env-and-run test_stress_resources.py

#id: tdx-stress/td-stress-boot
#category_id: tdx-stress
Expand Down Expand Up @@ -129,7 +129,7 @@ requires:
executable.name == 'qemu-system-x86_64'
command:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
setup-env-and-run test_multiple_boot.py
setup-env-and-run test_boot_multiple.py

id: tdx-guest/td-guest-report
category_id: tdx-guest
Expand Down
3 changes: 1 addition & 2 deletions tests/tests/test_boot_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def test_early_printk():
qm.qcmd.plugins['boot'].append = "earlyprintk=ttyS0,115200"
qm.run()

mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm)

qm.stop()
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ def test_4vcpus_1socket_10times():
qm = Qemu.QemuMachine()
qm.qcmd.plugins['cpu'].nb_cores = 4

Qemu.QemuMonitor.CONNECT_RETRIES = 10

for i in range(0,10):
qm.run()
mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm)
qm.stop()


Expand All @@ -46,10 +43,7 @@ def test_4vcpus_2sockets_5times():
qm.qcmd.plugins['cpu'].nb_cores = 4
qm.qcmd.plugins['cpu'].nb_sockets = 2

Qemu.QemuMonitor.CONNECT_RETRIES = 10

for i in range(0,5):
qm.run()
mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm)
qm.stop()
4 changes: 1 addition & 3 deletions tests/tests/test_quote_configfs_tsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import time

import Qemu
from common import deploy_and_setup

script_path=os.path.dirname(os.path.realpath(__file__))

Expand Down Expand Up @@ -47,9 +48,6 @@ def test_qgs_socket():
qm = Qemu.QemuMachine()
qm.run()

mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')

# do basic tsm_config test on guest
ssh = Qemu.QemuSSH(qm)
ssh.rsync_file(f'{script_path}/../lib', '/tmp/tdxtest/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def test_huge_resource_vm():
qm.qcmd.plugins['memory'].memory = '%dG' % (huge_mem_gb)
qm.run()

mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm)

qm.stop()

Expand All @@ -52,8 +51,7 @@ def test_max_vcpus():
qm.qcmd.plugins['cpu'].nb_cores = num_cpus
qm.run()

mon = Qemu.QemuMonitor(qm)
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm)

qm.stop()

Expand All @@ -79,8 +77,7 @@ def test_max_guests():
# wait for all machines running
for i in range(max_td_vms):
print("Waiting for machine %d" % (i))
mon = Qemu.QemuMonitor(qm[i])
mon.wait_for_state('running')
ssh = Qemu.QemuSSH(qm[i])

# stop all machines
for i in range(max_td_vms):
Expand Down

0 comments on commit 8638b50

Please sign in to comment.