virt-manager/tests/data/cli
Daniel Henrique Barboza ae3e92f0f5 tpm.py: make MODEL_SPAPR the default when running in ppc64
Users are fond of using "--tpm /dev/tpm0" to create a TPM device
for their VMs. ppc64 users, however, are experiencing errors because
the default TPM model is 'tpm-tis', which does not work in ppc64, and
they need to specify 'model=tpm-spapr' to work around that.

This patch makes the default TPM model change to 'tpm-spapr' when
running virt-install on a ppc64 host. A new test was added in test_cli.py
to test this new condition. This also keeps the 100% coverage of
the tpm.py file.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
CC: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
CC: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2020-07-04 17:56:57 -04:00
..
cloudinit tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
compare tpm.py: make MODEL_SPAPR the default when running in ppc64 2020-07-04 17:56:57 -04:00
fakefedoratree tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fakerhel6tree tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
admin-password.txt tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
clone-disk-managed.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
clone-disk-noexist.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
clone-disk.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
clone-nvram-auto.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-centos65-label.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-f26-netinst.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-f29-live.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-fedora17-tree.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-no-osinfo.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
fake-win7.iso tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
testdriver-defaultpool-collision.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
user-password.txt tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
virtxml-qemu-commandline-clear.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00
virtxml-stdin-edit.xml tests: Rename all test files to have test_ prefix 2020-01-27 06:57:37 -05:00