Changeset 144822 in webkit


Ignore:
Timestamp:
Mar 5, 2013 2:46:57 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Copy dictionary to the external storage before running layout test on android
https://bugs.webkit.org/show_bug.cgi?id=111480

Patch by Min Qin <qinmin@chromium.org> on 2013-03-05
Reviewed by Adam Barth.

TestWebKitPlatformSupport now needs to read an external dictionary file.
This file does not exist on the device. We need to copy it before running layout tests.

  • Scripts/webkitpy/layout_tests/port/chromium_android.py:

(ChromiumAndroidDriver._setup_md5sum_and_push_data_if_needed):
(ChromiumAndroidDriver._push_platform_resources):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r144802 r144822  
     12013-03-05  Min Qin  <qinmin@chromium.org>
     2
     3        Copy dictionary to the external storage before running layout test on android
     4        https://bugs.webkit.org/show_bug.cgi?id=111480
     5
     6        Reviewed by Adam Barth.
     7
     8        TestWebKitPlatformSupport now needs to read an external dictionary file.
     9        This file does not exist on the device. We need to copy it before running layout tests.
     10
     11        * Scripts/webkitpy/layout_tests/port/chromium_android.py:
     12        (ChromiumAndroidDriver._setup_md5sum_and_push_data_if_needed):
     13        (ChromiumAndroidDriver._push_platform_resources):
     14
    1152013-03-05  Dirk Pranke  <dpranke@chromium.org>
    216
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_android.py

    r142941 r144822  
    151151]
    152152
     153# List of test resources from webkit platform. These resources will be copied to the external storage.
     154WEBKIT_PLATFORM_RESOURCES_TO_PUSH = [
     155    'third_party/hyphen/hyph_en_US.dic',
     156]
     157
    153158MD5SUM_DEVICE_FILE_NAME = 'md5sum_bin'
    154159MD5SUM_DEVICE_PATH = '/data/local/tmp/' + MD5SUM_DEVICE_FILE_NAME
     
    572577        self._push_fonts()
    573578        self._push_test_resources()
     579        self._push_platform_resources()
    574580
    575581    def _setup_test(self):
     
    647653        for resource in TEST_RESOURCES_TO_PUSH:
    648654            self._push_file_if_needed(self._port.layout_tests_dir() + '/' + resource, DEVICE_LAYOUT_TESTS_DIR + resource)
     655
     656    def _push_platform_resources(self):
     657        self._log_debug('Pushing platform resources')
     658        external_storage = self._port._filesystem.join(self._run_adb_command(['shell', 'echo $EXTERNAL_STORAGE']).strip(), 'Source', 'WebKit', 'chromium')
     659        for resource in WEBKIT_PLATFORM_RESOURCES_TO_PUSH:
     660            self._push_file_if_needed(self._port._chromium_base_dir(self._port._filesystem) + '/' + resource, external_storage + '/' + resource)
    649661
    650662    def _restart_adb_as_root(self):
Note: See TracChangeset for help on using the changeset viewer.