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>

Details

Committed
asnFri, Oct 25, 3:15 PM
Parents
rLIBSSHe9e8292370ca: packet: On failure, do not use uninitialized crypto
Branches
Unknown
Tags
Unknown