Mercurial > hg > nginx-tests
comparison ssl_sni_sessions.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 | 3d312b6a1a19 |
children | 4a57ca616f8e |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
116 | 116 |
117 my $d = $t->testdir(); | 117 my $d = $t->testdir(); |
118 | 118 |
119 foreach my $name ('localhost') { | 119 foreach my $name ('localhost') { |
120 system('openssl req -x509 -new ' | 120 system('openssl req -x509 -new ' |
121 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 121 . "-config $d/openssl.conf -subj /CN=$name/ " |
122 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 122 . "-out $d/$name.crt -keyout $d/$name.key " |
123 . ">>$d/openssl.out 2>&1") == 0 | 123 . ">>$d/openssl.out 2>&1") == 0 |
124 or die "Can't create certificate for $name: $!\n"; | 124 or die "Can't create certificate for $name: $!\n"; |
125 } | 125 } |
126 | 126 |
127 $t->write_file('ticket1.key', '1' x 48); | 127 $t->write_file('ticket1.key', '1' x 48); |