tests: Use --cs for swtpm_bios rather than ambiguous -cs

The -cs parameter to swtpm_bios is like -c -s and therefore ambiguous.
Use the unambiguous long version --cs. This makes the test case work
on NetBSD, which does not support getopt_long_only().

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2018-08-29 13:08:19 +00:00
parent df9eccd404
commit 526bf3754e
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ if [ $? -ne 0 ] || [ -n "$res" ]; then
fi
# must work
res=$(run_swtpm_bios ${SWTPM_INTERFACE} -n -cs 2>&1)
res=$(run_swtpm_bios ${SWTPM_INTERFACE} -n --cs 2>&1)
if [ $? -ne 0 ] || [ -n "$res" ]; then
echo "Error: Could not self-test the ${SWTPM_INTERFACE} TPM."
exit 1
@ -126,7 +126,7 @@ if [ $? -ne 0 ]; then
fi
# must work
res=$(run_swtpm_bios ${SWTPM_INTERFACE} -cs -u 2>&1)
res=$(run_swtpm_bios ${SWTPM_INTERFACE} --cs -u 2>&1)
if [ $? -ne 0 ] || [ -n "$res" ]; then
echo "Error: Could not startup the ${SWTPM_INTERFACE} TPM."
exit 1

View File

@ -76,7 +76,7 @@ if [ $? -ne 0 ] || [ -n "$res" ]; then
fi
# must work
res=$(run_swtpm_bios ${SWTPM_INTERFACE} --tpm2 -n -cs 2>&1)
res=$(run_swtpm_bios ${SWTPM_INTERFACE} --tpm2 -n --cs 2>&1)
if [ $? -ne 0 ] || [ -n "$res" ]; then
echo "Error: Could not self-test the ${SWTPM_INTERFACE} TPM."
exit 1
@ -126,7 +126,7 @@ if [ $? -ne 0 ]; then
fi
# must work
res=$(run_swtpm_bios ${SWTPM_INTERFACE} --tpm2 -cs -u 2>&1)
res=$(run_swtpm_bios ${SWTPM_INTERFACE} --tpm2 --cs -u 2>&1)
if [ $? -ne 0 ] || [ -n "$res" ]; then
echo "Error: Could not startup the ${SWTPM_INTERFACE} TPM."
exit 1