summaryrefslogtreecommitdiffstats
path: root/scripts/qemu.py
diff options
context:
space:
mode:
authorMarc-André Lureau2018-10-03 15:21:28 +0200
committerStefan Berger2018-10-25 18:46:47 +0200
commitc1d99200dd3d7f73ebe13b32f12944d3e48a2cb9 (patch)
treedbdd3560a08e6f6a2d7e3955803c89d2103abc5e /scripts/qemu.py
parentMerge remote-tracking branch 'remotes/berrange/tags/qcrypto-next-pull-request... (diff)
downloadqemu-c1d99200dd3d7f73ebe13b32f12944d3e48a2cb9.tar.gz
qemu-c1d99200dd3d7f73ebe13b32f12944d3e48a2cb9.tar.xz
qemu-c1d99200dd3d7f73ebe13b32f12944d3e48a2cb9.zip
tests/tpm: fix tpm_util_swtpm_has_tpm2()
Using g_spawn_async_with_pipes() is more complicated than running the sync version. The async version returns a file descriptor for stdout, which may not be fully read. Sometime "--tpm2" will failed to be read, and will cause the related test to be silently skipped. Use g_spawn_sync() instead, simplifying the code and fixing the race. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/qemu.py')
0 files changed, 0 insertions, 0 deletions