HomePhabricator

tests: Use temporary file for known_hosts

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Sep 25 2019, 12:02 PM.

Description

tests: Use temporary file for known_hosts

Previously, the tests were sharing the same file path to create the
known_hosts file, which can create a race condition if the tests run in
parallel. Such file was deleted between tests.

By using different different files for each test, the risk of race
conditions is eliminated. Moreover, it makes unnecessary to destroy the
file between tests.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit d4fe8e1f62814287448bb0a042933e3fd3e07e0a)

Details

Committed
asnFri, Oct 25, 4:11 PM
Parents
rLIBSSH4f7cb6076a1d: pki_crypto: Support Ed25519 keys in PEM files
Branches
Unknown
Tags
Unknown