mirror of
https://github.com/curl/curl.git
synced 2026-07-31 09:18:03 +03:00
runtests: create runner functions for clearlocks and stopservers
runtests.pl now uses runner for all server actions beyond the initial variable configuration. Ref: #10818
This commit is contained in:
parent
640f4c2267
commit
b88ea272c1
3 changed files with 24 additions and 6 deletions
|
|
@ -36,6 +36,8 @@ BEGIN {
|
|||
checktestcmd
|
||||
prepro
|
||||
restore_test_env
|
||||
runner_clearlocks
|
||||
runner_stopservers
|
||||
runner_test_preprocess
|
||||
runner_test_run
|
||||
$DBGCURL
|
||||
|
|
@ -63,6 +65,7 @@ use processhelp qw(
|
|||
);
|
||||
use servers qw(
|
||||
checkcmd
|
||||
clearlocks
|
||||
serverfortest
|
||||
stopserver
|
||||
stopservers
|
||||
|
|
@ -995,4 +998,19 @@ sub runner_test_run {
|
|||
return (0, \%testtimings, $cmdres, $CURLOUT, $tool, $usedvalgrind);
|
||||
}
|
||||
|
||||
|
||||
###################################################################
|
||||
# Kill the server processes that still have lock files in a directory
|
||||
sub runner_clearlocks {
|
||||
my ($lockdir)=@_;
|
||||
clearlocks($lockdir);
|
||||
}
|
||||
|
||||
|
||||
###################################################################
|
||||
# Kill all server processes
|
||||
sub runner_stopservers {
|
||||
return stopservers($verbose);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue