Mercurial > hg > nginx-tests
comparison ssl_proxy_protocol.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 | cf14cfe9ec8c |
children | 8c764fd93b5e |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
84 | 84 |
85 my $d = $t->testdir(); | 85 my $d = $t->testdir(); |
86 | 86 |
87 foreach my $name ('localhost') { | 87 foreach my $name ('localhost') { |
88 system('openssl req -x509 -new ' | 88 system('openssl req -x509 -new ' |
89 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 89 . "-config $d/openssl.conf -subj /CN=$name/ " |
90 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 90 . "-out $d/$name.crt -keyout $d/$name.key " |
91 . ">>$d/openssl.out 2>&1") == 0 | 91 . ">>$d/openssl.out 2>&1") == 0 |
92 or die "Can't create certificate for $name: $!\n"; | 92 or die "Can't create certificate for $name: $!\n"; |
93 } | 93 } |
94 | 94 |
95 $t->write_file('t1', 'SEE-THIS'); | 95 $t->write_file('t1', 'SEE-THIS'); |