Changeset 45197 in webkit


Ignore:
Timestamp:
Jun 25, 2009 2:52:21 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-06-25 Eric Seidel <eric@webkit.org>

Reviewed by Mark Rowe.

Call WebKitTools/Scripts scripts by their absolute paths
https://bugs.webkit.org/show_bug.cgi?id=26704

bugzilla-tool used to use whatever build-webkit was in your path.
That could end up building the wrong copy of WebKit.

  • Scripts/bugzilla-tool:
  • Scripts/modules/scm.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r45192 r45197  
     12009-06-25  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Mark Rowe.
     4
     5        Call WebKitTools/Scripts scripts by their absolute paths
     6        https://bugs.webkit.org/show_bug.cgi?id=26704
     7
     8        bugzilla-tool used to use whatever build-webkit was in your path.
     9        That could end up building the wrong copy of WebKit.
     10
     11        * Scripts/bugzilla-tool:
     12        * Scripts/modules/scm.py:
     13
    1142009-06-25  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    215
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r45160 r45197  
    236236    @staticmethod
    237237    def run_and_throw_if_fail(script_name):
    238         build_webkit_process = subprocess.Popen(script_name, shell=True)
     238        build_webkit_process = subprocess.Popen(script_name)
    239239        return_code = build_webkit_process.wait()
    240240        if return_code:
     
    242242
    243243    @classmethod
     244    def run_webkit_script(cls, script_name):
     245        # We might need to pass scm into this function for scm.checkout_root
     246        cls.run_and_throw_if_fail(os.path.join("WebKitTools", "Scripts", script_name))
     247
     248    @classmethod
    244249    def build_webkit(cls):
    245         cls.run_and_throw_if_fail("build-webkit")
     250        cls.run_webkit_script("build-webkit")
    246251
    247252    @classmethod
    248253    def run_webkit_tests(cls):
    249         cls.run_and_throw_if_fail("run-webkit-tests")
     254        cls.run_webkit_script("run-webkit-tests")
    250255
    251256    @staticmethod
  • trunk/WebKitTools/Scripts/modules/scm.py

    r45160 r45197  
    7171        return output
    7272
     73    def script_path(self, script_name):
     74        return os.path.join(self.checkout_root, "WebKitTools", "Scripts", script_name)
     75
    7376    def ensure_clean_working_directory(self, force):
    7477        if not force and not self.working_directory_is_clean():
     
    9396        # We should detect and handle that case.
    9497        curl_process = subprocess.Popen(['curl', patch['url']], stdout=subprocess.PIPE)
    95         patch_apply_process = subprocess.Popen(['svn-apply', '--reviewer', patch['reviewer']], stdin=curl_process.stdout)
     98        patch_apply_process = subprocess.Popen([self.script_path('svn-apply'), '--reviewer', patch['reviewer']], stdin=curl_process.stdout)
    9699
    97100        return_code = patch_apply_process.wait()
     
    189192
    190193    def update_webkit(self):
    191         self.run_command("update-webkit")
     194        self.run_command(self.script_path("update-webkit"))
    192195
    193196    def status_command(self):
     
    208211
    209212    def create_patch_command(self):
    210         return "svn-create-patch"
     213        return self.script_path("svn-create-patch")
    211214
    212215    def commit_with_message(self, message):
Note: See TracChangeset for help on using the changeset viewer.