Fix the update_webgl_conformance_tests.py script in order to enable it

to detect the SCM being used correctly.
https://bugs.webkit.org/show_bug.cgi?id=77462

Patch by Ehsan Akhgari <ehsan.akhgari@gmail.com> on 2012-01-31
Reviewed by Kenneth Russell.

* Scripts/webkitpy/to_be_moved/update_webgl_conformance_tests.py:
(default_out_dir):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d50bf99d
2012-01-31 Ehsan Akhgari <ehsan.akhgari@gmail.com>
Fix the update_webgl_conformance_tests.py script in order to enable it
to detect the SCM being used correctly.
https://bugs.webkit.org/show_bug.cgi?id=77462
Reviewed by Kenneth Russell.
* Scripts/webkitpy/to_be_moved/update_webgl_conformance_tests.py:
(default_out_dir):
2012-01-31 Eric Seidel <eric@webkit.org>
webkit-patch apply-from-bug should work regardless of your CWD
......@@ -32,6 +32,8 @@ import os
import re
import sys
from webkitpy.common.checkout import scm
from webkitpy.common.system.filesystem import FileSystem
from webkitpy.common.system.executive import Executive
_log = logging.getLogger(__name__)
......@@ -94,7 +96,8 @@ def update_directory(in_dir, out_dir):
def default_out_dir():
current_scm = scm.detect_scm_system(os.path.dirname(sys.argv[0]))
detector = scm.SCMDetector(FileSystem(), Executive())
current_scm = detector.detect_scm_system(os.path.dirname(sys.argv[0]))
if not current_scm:
return os.getcwd()
root_dir = current_scm.checkout_root
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment