⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 90449 in webkit


Ignore:
Timestamp:
Jul 6, 2011, 4:03:56 AM (15 years ago)
Author:
eric@webkit.org
Message:

2011-07-06 Eric Seidel <eric@webkit.org>

Unreviewed..

  • Scripts/run-webkit-tests: (useNewRunWebKitTests):
    • Fix the pass-thru of --gtk and --qt for old-run-webkit-tests, it was previously broken by the existence of isGtk/isQt checks which removed the --gtk/--qt args from @ARGV.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90448 r90449  
     12011-07-06  Eric Seidel  <eric@webkit.org>
     2
     3        Unreviewed..
     4
     5        * Scripts/run-webkit-tests:
     6        (useNewRunWebKitTests):
     7         - Fix the pass-thru of --gtk and --qt for old-run-webkit-tests,
     8           it was previously broken by the existence of isGtk/isQt checks which
     9           removed the --gtk/--qt args from @ARGV.
     10
    1112011-07-06  Eric Seidel  <eric@webkit.org>
    212
  • trunk/Tools/Scripts/run-webkit-tests

    r90447 r90449  
    5656}
    5757
     58# We could use isWebKit2() instead of our own custom usingWebKit2(), but then
     59# we'd have to be careful to add -2 or --webkit-test-runner back into @ARGV below.
    5860sub usingWebKit2()
    5961{
     
    6668sub useNewRunWebKitTests()
    6769{
    68     # Change this check to control which platforms use
    69     # new-run-webkit-tests by default.
     70    # Change this check to control which platforms use new-run-webkit-tests by default.
    7071    # Example: return runningOnBuildBot() && isLeopard();
    7172    # would enable new-run-webkit-tests on only the leopard buildbots.
     73
     74    # Note: We use a whitelist here to avoid calling isPORT() for ports
     75    # for which we haven't explicitly added support.  Calling isPORT()
     76    # will remove the --PORT argument from @ARGV, causing us to fail to pass it to the test harness.
     77
    7278    # NRWT Windows support still needs work: https://bugs.webkit.org/show_bug.cgi?id=38756
    73     return (!isAnyWindows() and !usingWebKit2());
     79    return ((isLeopard() or isSnowLeopard() or isQt() or isGtk()) and !usingWebKit2());
    7480}
    7581
     
    8692
    8793    # FIXME: We need a cleaner way to do --platform handling.
    88     # One problem is that webkitdirs.pm strips --qt and --gtk from @ARGV when we call isQt/isGtk.
    89     # But new-run-webkit-tests wouldn't understand --qt/--gtk if we passed it to it anyway:
     94    # webkitdirs.pm strips --qt and --gtk from @ARGV when we call isQt/isGtk.
     95    # Unfortunately new-run-webkit-tests wouldn't understand --qt/--gtk if we passed it to it anyway,
     96    # so we have to convert it to --platform=PORT equivalents.
    9097    # https://bugs.webkit.org/show_bug.cgi?id=63970
    9198    if (isQt()) {
    9299        push(@ARGV, "--platform=qt");
     100    } elsif (isGtk()) {
     101        push(@ARGV, "--platform=gtk");
    93102    }
    94     if (isGtk()) {
    95         push(@ARGV, "--platform=gtk");
     103} else {
     104    # We have to add back any --PORT arguments which may have been removed by isPort() checks above.
     105    if (isQt()) {
     106        push(@ARGV, "--qt");
     107    } elsif (isGtk()) {
     108        push(@ARGV, "--gtk");
    96109    }
    97110}
Note: See TracChangeset for help on using the changeset viewer.