Mercurial > hg > nginx-tests
comparison h2_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 | 8ef51dbb5d69 |
children | dbce8fb5f5f8 |
comparison
equal
deleted
inserted
replaced
1219:f373a718f646 | 1220:0af58b78df35 |
---|---|
64 | 64 |
65 my $d = $t->testdir(); | 65 my $d = $t->testdir(); |
66 | 66 |
67 foreach my $name ('localhost') { | 67 foreach my $name ('localhost') { |
68 system('openssl req -x509 -new ' | 68 system('openssl req -x509 -new ' |
69 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 69 . "-config $d/openssl.conf -subj /CN=$name/ " |
70 . "-out '$d/$name.crt' -keyout '$d/$name.key' " | 70 . "-out $d/$name.crt -keyout $d/$name.key " |
71 . ">>$d/openssl.out 2>&1") == 0 | 71 . ">>$d/openssl.out 2>&1") == 0 |
72 or die "Can't create certificate for $name: $!\n"; | 72 or die "Can't create certificate for $name: $!\n"; |
73 } | 73 } |
74 | 74 |
75 $t->write_file('tbig.html', | 75 $t->write_file('tbig.html', |