Mercurial > hg > nginx-tests
diff stream_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 | ba3279915da5 |
children | dbce8fb5f5f8 |
line wrap: on
line diff
--- a/stream_ssl.t +++ b/stream_ssl.t @@ -102,13 +102,13 @@ my $d = $t->testdir(); mkfifo("$d/password_fifo", 0700); foreach my $name ('localhost', 'inherits') { - system("openssl genrsa -out '$d/$name.key' -passout pass:$name " + system("openssl genrsa -out $d/$name.key -passout pass:$name " . "-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:$name" + . "-config $d/openssl.conf -subj /CN=$name/ " + . "-out $d/$name.crt " + . "-key $d/$name.key -passin pass:$name" . ">>$d/openssl.out 2>&1") == 0 or die "Can't create certificate for $name: $!\n"; }