Bug 101995 - Please reinstate --pixel
Summary: Please reinstate --pixel
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: NRWT
Depends on:
Blocks:
 
Reported: 2012-11-12 14:40 PST by Simon Fraser (smfr)
Modified: 2013-01-16 12:29 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.94 KB, patch)
2013-01-16 02:19 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2012-11-12 14:40:27 PST
run-webkit-tests --pixel is hard-wired in my brain, and was in ORWT for years. Please put it back.
Comment 1 Dirk Pranke 2012-11-12 16:36:06 PST
ORWT supports --pixel-tests, and NRWT supports -p and --pixel-tests; I think the fact that --pixel worked is a side-effect of the way that Perl supports things (unique prefixes for an arg will work), but Python's standard option parsing doesn't do that.

We can add in a --pixel synonym for -p or --pixel-tests, but you're the first person that's complained about this. Are you sure you can't rewire your brain to support the shorter -p ?
Comment 2 Simon Fraser (smfr) 2012-11-12 17:06:20 PST
mitz has also complained about this. I guess i can try getting used to -p.
Comment 3 Dirk Pranke 2012-11-12 17:12:59 PST
to be clear: I'm happy to add this (it's one line or less) if there's really a need, but it seems kinda silly.
Comment 4 Simon Fraser (smfr) 2012-11-12 17:19:36 PST
The strongest argument I have is that ORWT had this for years, and as a result some people expect it to work.
Comment 5 Dirk Pranke 2012-11-12 17:25:18 PST
My only hesitation is that since perl supported *any* unique prefix, I'm not sure how many different versions to add. Is "--pixel" enough? Are there other switches that need similar shortcuts?
Comment 6 Simon Fraser (smfr) 2012-11-12 17:39:32 PST
This is the only one I habitually type in and have it not work (though I get confused about --new-baseline vs. --new-baselines).
Comment 7 Zan Dobersek 2013-01-16 02:19:39 PST
Created attachment 182943 [details]
Patch
Comment 8 Dirk Pranke 2013-01-16 12:15:28 PST
Comment on attachment 182943 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=182943&action=review

> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:136
> +        optparse.make_option("-p", "--pixel", "--pixel-tests", action="store_true",

I didn't realize that worked; I always assumed it was one short and one long :) .
Comment 9 WebKit Review Bot 2013-01-16 12:29:24 PST
Comment on attachment 182943 [details]
Patch

Clearing flags on attachment: 182943

Committed r139912: <http://trac.webkit.org/changeset/139912>
Comment 10 WebKit Review Bot 2013-01-16 12:29:28 PST
All reviewed patches have been landed.  Closing bug.