WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
37785
new-run-webkit-tests: add more --log options
https://bugs.webkit.org/show_bug.cgi?id=37785
Summary
new-run-webkit-tests: add more --log options
Dirk Pranke
Reported
2010-04-18 17:43:04 PDT
We should add options to be able to turn off and on all of the blocks that are sent to stderr. Most are currently configurable, but we can't turn off the default progress meter, or the unexpected results or the summary at the end of the run. It would also be good to have a way to indicate that you explicitly want nothing logged (--log '' can be easily lost in shell escaping mechanisms).
Attachments
Patch
(5.05 KB, patch)
2010-04-18 17:43 PDT
,
Dirk Pranke
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2010-04-18 17:43:38 PDT
Created
attachment 53647
[details]
Patch
Eric Seidel (no email)
Comment 2
2010-04-19 00:07:33 PDT
Comment on
attachment 53647
[details]
Patch Seems strange that some of these are constants and some are not: LOG_VALUES = ",".join(("actual", "config", LOG_DETAILED_PROGRESS, "expected", 100 LOG_NOTHING, LOG_PROGRESS, LOG_SUMMARY, "timing", 101 LOG_UNEXPECTED, LOG_UNEXPECTED_RESULTS)) Seems OK. I don't know much about python's built in logging. I wonder if we're re-inventing any of that here.
Chris Jerdonek
Comment 3
2010-04-19 00:47:23 PDT
(In reply to
comment #2
)
> (From update of
attachment 53647
[details]
) > Seems strange that some of these are constants and some are not: > LOG_VALUES = ",".join(("actual", "config", LOG_DETAILED_PROGRESS, "expected", > 100 LOG_NOTHING, LOG_PROGRESS, LOG_SUMMARY, "timing", > 101 LOG_UNEXPECTED, LOG_UNEXPECTED_RESULTS)) > > Seems OK. I don't know much about python's built in logging. I wonder if > we're re-inventing any of that here.
I was wondering that myself. The logging module allows one to turn various loggers on and off using different techniques when configuring logging (e.g. by name using the name hierarchy, based on the message, etc). By the way, a function (e.g. log_values()) might be more appropriate here than a constant built from other constants.
Dirk Pranke
Comment 4
2010-04-19 14:38:09 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 53647
[details]
[details]) > > Seems strange that some of these are constants and some are not: > > LOG_VALUES = ",".join(("actual", "config", LOG_DETAILED_PROGRESS, "expected", > > 100 LOG_NOTHING, LOG_PROGRESS, LOG_SUMMARY, "timing", > > 101 LOG_UNEXPECTED, LOG_UNEXPECTED_RESULTS)) > > > > Seems OK. I don't know much about python's built in logging. I wonder if > > we're re-inventing any of that here. > > I was wondering that myself. The logging module allows one to turn various > loggers on and off using different techniques when configuring logging (e.g. by > name using the name hierarchy, based on the message, etc).
> From my limited looking at the logging docs, it looked like it would be a lot more cumbersome, if possible at all.
> By the way, a function (e.g. log_values()) might be more appropriate here than > a constant built from other constants.
This whole thing is about to get rewritten to be easier to maintain, so I'll deal with it then.
Dirk Pranke
Comment 5
2010-04-19 14:39:48 PDT
Comment on
attachment 53647
[details]
Patch Clearing flags on attachment: 53647 Committed
r57840
: <
http://trac.webkit.org/changeset/57840
>
Dirk Pranke
Comment 6
2010-04-19 14:39:53 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug