bios-tables-test: Fix "-tpmdev: invalid option"
commit55b9757c7e58092068d6788114b9e347406ed7f9
authorEric Auger <eric.auger@redhat.com>
Mon, 15 Jun 2020 13:50:51 +0000 (15 15:50 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 15 Jun 2020 16:26:46 +0000 (15 18:26 +0200)
tree80de940d2aaa74489218776b48c7e7134fdb1e04
parent7d3660e79830a069f1848bb4fa1cdf8f666424fb
bios-tables-test: Fix "-tpmdev: invalid option"

When configure is run with "--disable-tpm", the bios-tables-test
q35/tis test fails with "-tpmdev: invalid option".

Skip the test if CONFIG_TPM is unset.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reported-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200615135051.2213-1-eric.auger@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Fixes: 5da7c35e25 ("bios-tables-test: Add Q35/TPM-TIS test")
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/bios-tables-test.c