Changeset 127482 in webkit


Ignore:
Timestamp:
Sep 4, 2012 12:11:43 PM (12 years ago)
Author:
ojan@chromium.org
Message:

Elide test names when running new-run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=95626

Patch by Tony Chang <tony@chromium.org> on 2012-09-04
Reviewed by Dirk Pranke.

When the test name exceeds the number of terminal columns, it leaves
text on the screen. Avoid this by eliding the test name when running
tests. This is similar to what ninja does when compiling.

  • Scripts/webkitpy/layout_tests/views/metered_stream.py:

(MeteredStream):
(MeteredStream.number_of_columns): Helper method to get number of
terminal columns. Won't work on Win32 python, but meh.

  • Scripts/webkitpy/layout_tests/views/printing.py:

(Printer._test_status_line): New method for eliding the text. Doesn't use \u2026
because stderr appears to be ascii only.
(Printer.print_started_test): Route through _test_status_line.
(Printer.print_finished_test): Route through _test_status_line.
(Printer._print_test_trace): Route through _test_status_line.
(Printer._print_baseline): Route through _test_status_line.

  • Scripts/webkitpy/layout_tests/views/printing_unittest.py:

(test_test_status_line): Test for _test_status_line.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r127478 r127482  
    7474        (WebViewHost):
    7575        (WebViewHost::setPointerLockWillRespondAsynchronously):
     76
     772012-09-04  Ojan Vafai  <ojan@chromium.org>
     78
     79        Move content shell bots to their own builder group
     80        https://bugs.webkit.org/show_bug.cgi?id=95765
     81
     82        Reviewed by Adam Barth.
     83
     84        In their current state of instability, they add too much noise. Once they get more stable,
     85        we can add them back to the regular group or just have them replace the other bots.
     86
     87        Also, fix the filter for Apple Windows bots since some of them are now "Apple Win ...".
     88
     89        * TestResultServer/static-dashboards/builders.js:
     90        (isWebkitTestRunner):
     91        (isChromiumContentShellTestRunner):
     92        (isChromiumWebkitTipOfTreeTestRunner):
     93        (loadBuildersList):
    7694
    77952012-09-03  Ryuan Choi  <ryuan.choi@samsung.com>
  • trunk/Tools/TestResultServer/static-dashboards/builders.js

    r125931 r127482  
    166166    if (builder.indexOf('Tests') != -1) {
    167167        // Apple Windows bots still run old-run-webkit-tests, so they don't upload data.
    168         return builder.indexOf('Windows') == -1 || (builder.indexOf('Qt') != -1 && builder.indexOf('Chromium') != -1);
     168        return builder.indexOf('Win') == -1 || (builder.indexOf('Qt') != -1 && builder.indexOf('Chromium') != -1);
    169169    }
    170170    return builder.indexOf('GTK') != -1 || builder == 'Qt Linux Release';
    171171}
    172172
     173function isChromiumContentShellTestRunner(builder)
     174{
     175    return builder.indexOf('(Content Shell)') != -1;
     176}
     177
    173178function isChromiumWebkitTipOfTreeTestRunner(builder)
    174179{
    175     return (builder.indexOf('Webkit') != -1 && builder.indexOf('Builder') == -1 && builder.indexOf('(deps)') == -1 && builder.indexOf('ASAN') == -1) || builder.indexOf('(Content Shell)') != -1;
     180    return builder.indexOf('Webkit') != -1 && builder.indexOf('Builder') == -1 && builder.indexOf('(deps)') == -1 && builder.indexOf('ASAN') == -1;
    176181}
    177182
     
    251256    case 'layout-tests':
    252257        switch(groupName) {
     258        case 'Content Shell @ToT - chromium.org':
     259            var builderGroup = new BuilderGroup(BuilderGroup.TOT_WEBKIT);
     260            requestBuilderList(LAYOUT_TESTS_BUILDER_GROUPS, isChromiumContentShellTestRunner, CHROMIUM_WEBKIT_BUILDER_MASTER, groupName, builderGroup);
     261            break;
     262
    253263        case '@ToT - chromium.org':
    254264            var builderGroup = new BuilderGroup(BuilderGroup.TOT_WEBKIT);
     
    297307    '@ToT - webkit.org': null,
    298308    '@DEPS - chromium.org': null,
     309    'Content Shell @ToT - chromium.org': null,
    299310};
    300311
Note: See TracChangeset for help on using the changeset viewer.