mirror of
https://github.com/curl/curl.git
synced 2026-07-05 16:07:15 +03:00
test harness: fix detection of test harness host and client key files
Regenerate curl's tests host and client key files also when, somehow, any of these files are empty.
This commit is contained in:
parent
5ea65fbc79
commit
38fff918f9
1 changed files with 4 additions and 2 deletions
|
|
@ -362,8 +362,10 @@ if((($sshid =~ /OpenSSH/) && ($sshvernum < 299)) ||
|
|||
#***************************************************************************
|
||||
# Generate host and client key files for curl's tests
|
||||
#
|
||||
if((! -e $hstprvkeyf) || (! -e $hstpubkeyf) ||
|
||||
(! -e $cliprvkeyf) || (! -e $clipubkeyf)) {
|
||||
if((! -e $hstprvkeyf) || (! -s $hstprvkeyf) ||
|
||||
(! -e $hstpubkeyf) || (! -s $hstpubkeyf) ||
|
||||
(! -e $cliprvkeyf) || (! -s $cliprvkeyf) ||
|
||||
(! -e $clipubkeyf) || (! -s $clipubkeyf)) {
|
||||
# Make sure all files are gone so ssh-keygen doesn't complain
|
||||
unlink($hstprvkeyf, $hstpubkeyf, $cliprvkeyf, $clipubkeyf);
|
||||
logmsg 'generating host keys...' if($verbose);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue