Mercurial > hg > nginx-tests
comparison proxy_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 | 155573499f20 |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
89 | 89 |
90 my $d = $t->testdir(); | 90 my $d = $t->testdir(); |
91 | 91 |
92 foreach my $name ('localhost') { | 92 foreach my $name ('localhost') { |
93 system('openssl req -x509 -new ' | 93 system('openssl req -x509 -new ' |
94 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 94 . "-config $d/openssl.conf -subj /CN=$name/ " |
95 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 95 . "-out $d/$name.crt -keyout $d/$name.key " |
96 . ">>$d/openssl.out 2>&1") == 0 | 96 . ">>$d/openssl.out 2>&1") == 0 |
97 or die "Can't create certificate for $name: $!\n"; | 97 or die "Can't create certificate for $name: $!\n"; |
98 } | 98 } |
99 | 99 |
100 $t->run_daemon(\&http_daemon, port(8082)); | 100 $t->run_daemon(\&http_daemon, port(8082)); |