mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-10 00:23:28 +00:00
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:
parent
df9eccd404
commit
526bf3754e
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user