runtests: flush cached test parts when (re)loading a file

Force test file reload on client connect in ftpserver.

Closes #22319
This commit is contained in:
Graham Campbell 2026-07-14 01:38:01 +01:00 committed by Dan Fandrich
parent 0dc22b690d
commit d0545d223a
3 changed files with 12 additions and 6 deletions

View file

@ -3142,7 +3142,8 @@ while(1) {
$| = 1;
&customize(); # read test control instructions
loadtest("$logdir/test$testno");
# force a reload, a test retry may have regenerated the file
loadtest("$logdir/test$testno", 0, 1);
my $welcome = $commandreply{"welcome"};
if(!$welcome) {