mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-12 22:15:44 +00:00
tests: Convert existing test case to use file descriptor for reading key
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
87448aada5
commit
c363aa9e7d
@ -39,9 +39,11 @@ source ${TESTDIR}/common
|
||||
|
||||
rm -f $STATE_FILE $VOLATILE_STATE_FILE 2>/dev/null
|
||||
|
||||
exec 101<$keyfile
|
||||
run_swtpm ${SWTPM_INTERFACE} \
|
||||
--key file=$keyfile,mode=aes-cbc,format=hex \
|
||||
--key fd=101,mode=aes-cbc,format=hex \
|
||||
--log file=$logfile
|
||||
exec 101>&-
|
||||
|
||||
display_processes_by_name "$SWTPM"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user