Skip to content

Commit

Permalink
tests: Convert existing test case to use file descriptor for reading …
Browse files Browse the repository at this point in the history
…password

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
  • Loading branch information
stefanberger committed Jun 24, 2019
1 parent 6f57af7 commit d398c0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/_test_save_load_encrypted_state
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,11 @@ sha1_permanent=$(get_sha1_file "${STATE_FILE}")
echo "sha1(volatile) : $sha1_volatile"
echo "sha1(permanent): $sha1_permanent"

exec 101<$keyfile
run_swtpm ${SWTPM_INTERFACE} \
--key pwdfile=$keyfile \
--key pwdfd=101 \
--log file=$logfile
exec 101>&-

display_processes_by_name "$SWTPM"

Expand Down

0 comments on commit d398c0b

Please sign in to comment.