comparison stream_proxy_protocol_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
67 67
68 my $d = $t->testdir(); 68 my $d = $t->testdir();
69 69
70 foreach my $name ('localhost') { 70 foreach my $name ('localhost') {
71 system('openssl req -x509 -new ' 71 system('openssl req -x509 -new '
72 . "-config '$d/openssl.conf' -subj '/CN=$name/' " 72 . "-config $d/openssl.conf -subj /CN=$name/ "
73 . "-out '$d/$name.crt' -keyout '$d/$name.key' " 73 . "-out $d/$name.crt -keyout $d/$name.key "
74 . ">>$d/openssl.out 2>&1") == 0 74 . ">>$d/openssl.out 2>&1") == 0
75 or die "Can't create certificate for $name: $!\n"; 75 or die "Can't create certificate for $name: $!\n";
76 } 76 }
77 77
78 $t->run_daemon(\&stream_daemon_ssl, port(8081), path => $d, pp => 1); 78 $t->run_daemon(\&stream_daemon_ssl, port(8081), path => $d, pp => 1);