Mercurial > hg > nginx-tests
diff mail_ssl.t @ 1220:0af58b78df35
Tests: removed single quotes from system() calls.
Single quotes were used to escape paths with spaces but are neither supported
in the Windows CMD shell, nor sufficient without proper %%TESTDIR%% expansion.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 20 Sep 2017 14:46:51 +0300 |
parents | 44620036fedf |
children | 918bf90466e0 |
line wrap: on
line diff
--- a/mail_ssl.t +++ b/mail_ssl.t @@ -148,13 +148,13 @@ EOF my $d = $t->testdir(); foreach my $name ('localhost', 'inherits') { - system("openssl genrsa -out '$d/$name.key' -passout pass:localhost " + system("openssl genrsa -out $d/$name.key -passout pass:localhost " . "-aes128 1024 >>$d/openssl.out 2>&1") == 0 or die "Can't create private key: $!\n"; system('openssl req -x509 -new ' - . "-config '$d/openssl.conf' -subj '/CN=$name/' " - . "-out '$d/$name.crt' " - . "-key '$d/$name.key' -passin pass:localhost" + . "-config $d/openssl.conf -subj /CN=$name/ " + . "-out $d/$name.crt " + . "-key $d/$name.key -passin pass:localhost" . ">>$d/openssl.out 2>&1") == 0 or die "Can't create certificate for $name: $!\n"; }