Mercurial > hg > nginx-tests
comparison ssl_verify_client.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 | b1dc56ad15e9 |
children | eadd24ccfda1 |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
105 | 105 |
106 my $d = $t->testdir(); | 106 my $d = $t->testdir(); |
107 | 107 |
108 foreach my $name ('1.example.com', '2.example.com', '3.example.com') { | 108 foreach my $name ('1.example.com', '2.example.com', '3.example.com') { |
109 system('openssl req -x509 -new ' | 109 system('openssl req -x509 -new ' |
110 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 110 . "-config $d/openssl.conf -subj /CN=$name/ " |
111 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 111 . "-out $d/$name.crt -keyout $d/$name.key " |
112 . ">>$d/openssl.out 2>&1") == 0 | 112 . ">>$d/openssl.out 2>&1") == 0 |
113 or die "Can't create certificate for $name: $!\n"; | 113 or die "Can't create certificate for $name: $!\n"; |
114 } | 114 } |
115 | 115 |
116 $t->write_file('t', 'SEE-THIS'); | 116 $t->write_file('t', 'SEE-THIS'); |