I'm almost all the way done with getting WinCairo to run layout tests. I don't know how to get it to run "Tools/Scripts/webkit-build-directory --configuration --wincairo" instead of "Tools/Scripts/webkit-build-directory --configuration --debug --win". When I put die() in isWinCairo() in webkitdirs.pm, I get this: ScriptError raised: Failed to run "['perl', 'Tools/Scripts/webkit-build-directory', '--configuration', '--debug', '--win']" exit_code: 255 cwd: /webkit Traceback (most recent call last): File "/webkit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 80, in main run_details = run(port, options, args, stderr) File "/webkit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 393, in run manager = Manager(port, options, printer) File "/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py", line 88, in __init__ self._results_directory = self._port.results_directory() File "/webkit/Tools/Scripts/webkitpy/port/base.py", line 776, in results_directory option_val = self.get_option('results_directory') or self.default_results_directory() File "/webkit/Tools/Scripts/webkitpy/port/base.py", line 787, in default_results_directory return self._build_path('layout-test-results') File "/webkit/Tools/Scripts/webkitpy/port/base.py", line 1116, in _build_path root_directory = self._config.build_directory(self.get_option('configuration')) File "/webkit/Tools/Scripts/webkitpy/port/config.py", line 84, in build_directory output = self._executive.run_command(args, cwd=self._webkit_finder.webkit_base(), return_stderr=False).rstrip() File "/webkit/Tools/Scripts/webkitpy/common/system/executive.py", line 452, in run_command (error_handler or self.default_error_handler)(script_error) File "/webkit/Tools/Scripts/webkitpy/common/system/executive.py", line 370, in default_error_handler raise error Where else do I need to put "wincairo" instead of just "win"?
Created attachment 225820 [details] Patch
would defining my own _build_path function in win.py be a good solution?
Created attachment 225850 [details] Patch
I can use the --root option to force the bot to use the correct build directory instead of navigating the python and adding wincairo options everywhere. These changes are necessary for the program to even start, though.
Comment on attachment 225850 [details] Patch Clearing flags on attachment: 225850 Committed r165097: <http://trac.webkit.org/changeset/165097>
All reviewed patches have been landed. Closing bug.