Repository navigation
Conversation
| ####################################################################### | ||
| # clear and create logging directory: | ||
| # | ||
|
|
||
| # TODO: figure how to get around this. This directory is needed for checksystemfeatures() | ||
| # Maybe create & use & delete a temporary directory in that function | ||
| cleardir($LOGDIR); | ||
| mkdir($LOGDIR, 0777); | ||
| mkdir("$LOGDIR/$LOCKDIR", 0777); |
There was a problem hiding this comment.
I guess it's not necessary anymore, but I didn't look at it closely.
It's also what your PR aims at in #23424, seems best to continue
tackling there.
There was a problem hiding this comment.
Sound good to me. I would leave the pull request open.
To avoid potential extra output, e.g. if a .curlrc is present with --verbose and -vvvv in it, the location of the .curlrc file (also controllable via CURL_HOME) is output to stderr, e.g.: ``` Note: Read config file from '/path/to/.curlrc' WARNING: this libcurl is Debug-enabled, do not use in production ``` I can't see how this could confuse the parser, but best to prevent it with `--disable`.
3d5865b to
b7c1166
Compare
|
On NetBSD 11, tests started timing out yesterday, it is unrelated to this commit. Just FTR. Here's a run that's just slow: |
Prior to this patch runtests was determining curl version and build
details by saving stdout and stderr output to disk file and re-reading
from there to parse and output to log. Simplify by reading stdout+
stderr directly into memory instead.
Also avoids touching the disk, and no longer needs a
logdirectorypresent.
Also:
--disablealongside--versionto prevent parsing.curlrcwith potential extra output or side-effect.
Ref: https://perldoc.perl.org/perlop#%60STRING%60
Ref: #23424
Follow-up to 93d5952
The fundamental change here is that now the combined stdout+stderr
is parsed, while earlier, only stdout was parsed and stderr logged in
case of error. In practice however, stderr only has the bebug-enabled
build warning, the relevant information is in stdout. The warning is
just skipped by the parser after this patch. Perhaps it'd be useful to
also pass
--disableto avoid a.curlrcpotentially skewing the results [DONE].