Skip to content

Commit

Permalink
fix failing tests cause of permanent modification of qemu machine/obj…
Browse files Browse the repository at this point in the history
…ect arguments (#245)

currently in the test tests/test_quote_configfs_tsm.py::test_qgs_socket
we modify permanently the qemu -machine and -object arguments.
this can make following tests fail

we do not want to modify these arguments permanently but only for
the current test
  • Loading branch information
hector-cao authored Oct 10, 2024
1 parent d9d2dbb commit 8bbe3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests/test_quote_configfs_tsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_qgs_socket(qm):
"""
Test QGS socket (No Intel Case ID)
"""
object = '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type": "vsock", "cid":"2","port":"4050"}}'
Qemu.QemuMachineType.Qemu_Machine_Params[Qemu.QemuEfiMachine.OVMF_Q35_TDX][1] = object
machine = qm.qcmd.plugins['machine']
machine.enable_quote_socket()

qm.run()

Expand Down

0 comments on commit 8bbe3c6

Please sign in to comment.