我成功完成了Webkit窗口构建(WinLauncher和DumpRenderTree exe工作。)
我正在尝试在Windows 7 64位上进行Webkit布局测试
$ ./Tools/Scripts/run-webkit-tests --debug --driver-name=DumpRenderTree canvas
我收到了一些错误
我认为这可能与我的电脑设置有关,但不确定
Webkit源代码没有问题,因为Webkit build-bot可以正常进行布局测试
我的Python版本:2.7.8(作为http://www.webkit.org/building/tools.html)
Cygwin:已安装所有包裹
构建:VS2013 - debug - win32
错误
Using port 'win-future'
Test configuration: <future, x86, debug>
Placing test results in /home/user/myWebkit/WebKitBuild/Debug/bin32/layout-test-results
Baseline search path: win -> mac-mountainlion -> mac -> generic
Using Debug build
Pixel tests disabled
Regular timeout: 35000, slow test timeout: 175000
Command line: /home/user/myWebkit/WebKitBuild/Debug/bin32/DumpRenderTree -
--lint-test-files warnings:
LayoutTests/platform/win/TestExpectations:996 Path does not exist.
fast/multicol/newmulticol/compare-with-old-impl/hit-test-above-or-below.html
LayoutTests/platform/win/TestExpectations:2898 Unrecognized expectation "Timeout]"
tables/mozilla/marvin/backgr_simple-table-column.html
Found 801 tests; running 801, skipping 0.
Checking build ...
UnicodeDecodeError raised: 'utf8' codec can't decode byte 0xb9 in position 374: invalid start byte
~ ~ ~ ~
在cygwin中,我的语言环境是
$ locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=
我添加了以下cmds并运行了layouttests,但没有任何变化。
export LC_ALL=ko_KR.UTF-8
或 ko_KR.utf8,“ko_KR.utf8” ......
答案 0 :(得分:0)
#-*-coding:utf-8-*-
import locale
locale.setlocale(locale.LC_ALL, '')
import os
你可以添加它们并检查吗?也许它会有所帮助