Skip to content

Commit

Permalink
tests: Assign unique ports 65452/65453 to test_tpm2_save_load_state
Browse files Browse the repository at this point in the history
Assign the unique port 65452/65354 to test_tpm2_save_load_state to
avoid conflict with test_tpm_probe also using

SWTPM_SERVER_PORT=65526
SWTPM_CTRL_PORT=65527

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Aug 6, 2020
1 parent 3fcb474 commit 950523c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_tpm2_save_load_state
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ ret=$?

export SWTPM_INTERFACE=socket+socket
export SWTPM_SERVER_NAME=localhost
export SWTPM_SERVER_PORT=65526
export SWTPM_CTRL_PORT=65527
export SWTPM_SERVER_PORT=65452
export SWTPM_CTRL_PORT=65453
bash _test_tpm2_save_load_state
ret=$?
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret

export SWTPM_INTERFACE=socket+unix
export SWTPM_SERVER_NAME=localhost
export SWTPM_SERVER_PORT=65526
export SWTPM_SERVER_PORT=65452
bash _test_tpm2_save_load_state
ret=$?
[ $ret -ne 0 ] && [ $ret -ne 77 ] && exit $ret
Expand Down

0 comments on commit 950523c

Please sign in to comment.