mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:33:33 +03:00
tests: fix http servers to run with a dynamic log directory
Ref: #10818
This commit is contained in:
parent
c753418d8b
commit
8a298119f1
4 changed files with 37 additions and 4 deletions
|
|
@ -30,8 +30,9 @@ use Cwd;
|
|||
use Cwd 'abs_path';
|
||||
use File::Basename;
|
||||
|
||||
my $pidfile = "log/nghttpx.pid";
|
||||
my $logfile = "log/http3.log";
|
||||
my $logdir = "log";
|
||||
my $pidfile = "$logdir/nghttpx.pid";
|
||||
my $logfile = "$logdir/http3.log";
|
||||
my $nghttpx = "nghttpx";
|
||||
my $listenport = 9015;
|
||||
my $connect = "127.0.0.1,8990";
|
||||
|
|
@ -82,6 +83,12 @@ while(@ARGV) {
|
|||
shift @ARGV;
|
||||
}
|
||||
}
|
||||
elsif($ARGV[0] eq '--logdir') {
|
||||
if($ARGV[1]) {
|
||||
$logdir = $ARGV[1];
|
||||
shift @ARGV;
|
||||
}
|
||||
}
|
||||
elsif($ARGV[0] eq '--conf') {
|
||||
if($ARGV[1]) {
|
||||
$conf = $ARGV[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue