Changeset 57254 in webkit


Ignore:
Timestamp:
Apr 7, 2010 11:56:46 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-04-07 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Remove depricated op.popen2 call in new-run-webkit-tests
https://bugs.webkit.org/show_bug.cgi?id=37249

Python complains that this API is depricated. We already solved this
problem in executive.py.

  • Scripts/webkitpy/layout_tests/port/mac.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57253 r57254  
     12010-04-07  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove depricated op.popen2 call in new-run-webkit-tests
     6        https://bugs.webkit.org/show_bug.cgi?id=37249
     7
     8        Python complains that this API is depricated.  We already solved this
     9        problem in executive.py.
     10
     11        * Scripts/webkitpy/layout_tests/port/mac.py:
     12
    1132010-04-07  Eric Seidel  <eric@webkit.org>
    214
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/mac.py

    r57253 r57254  
    166166
    167167    def num_cores(self):
    168         ncores = int(os.popen2("sysctl -n hw.ncpu")[1].read())
     168        ncores = int(executive.run_command(["sysctl", "-n", "hw.ncpu"]))
    169169        # FIXME: new-run-webkit-tests is unstable running more than four
    170170        # threads in parallel.
Note: See TracChangeset for help on using the changeset viewer.