Mercurial > hg > nginx-tests
comparison stream_proxy_ssl_name.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 | 8ef51dbb5d69 |
children | dbce8fb5f5f8 |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
109 | 109 |
110 my $d = $t->testdir(); | 110 my $d = $t->testdir(); |
111 | 111 |
112 foreach my $name ('localhost') { | 112 foreach my $name ('localhost') { |
113 system('openssl req -x509 -new ' | 113 system('openssl req -x509 -new ' |
114 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 114 . "-config $d/openssl.conf -subj /CN=$name/ " |
115 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 115 . "-out $d/$name.crt -keyout $d/$name.key " |
116 . ">>$d/openssl.out 2>&1") == 0 | 116 . ">>$d/openssl.out 2>&1") == 0 |
117 or die "Can't create certificate for $name: $!\n"; | 117 or die "Can't create certificate for $name: $!\n"; |
118 } | 118 } |
119 | 119 |
120 $t->write_file('index.html', ''); | 120 $t->write_file('index.html', ''); |