Changeset 220719 in webkit
- Timestamp:
- Aug 14, 2017 3:38:41 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r220715 r220719 1 2017-08-14 Youenn Fablet <youenn@apple.com> 2 3 WPT server should be able to do logging even if its output folder is not created at launch time 4 https://bugs.webkit.org/show_bug.cgi?id=175543 5 6 Reviewed by Alexey Proskuryakov. 7 8 Removing no longer used stdout/stderr member variables. 9 Creating if needed the output folder so that we can create WPT server output log folder at WPT server launch time. 10 11 * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py: 12 (WebPlatformTestServer.__init__): 13 (WebPlatformTestServer._prepare_config): 14 (WebPlatformTestServer._spawn_process): 15 (WebPlatformTestServer._stop_running_server): 16 1 17 2017-08-14 Daniel Bates <dabates@apple.com> 2 18 -
trunk/Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py
r220111 r220719 89 89 self._servers_file = self._filesystem.join(self._runtime_path, '%s_servers.json' % (self._name)) 90 90 91 self._stdout_data = None92 self._stderr_data = None93 91 self._filesystem = port_obj.host.filesystem 94 92 self._layout_root = port_obj.layout_tests_dir() … … 144 142 145 143 def _prepare_config(self): 146 if self._filesystem.exists(self._output_dir):147 148 144 self._filesystem.maybe_make_directory(self._output_dir) 145 self._output_log_path = self._filesystem.join(self._output_dir, self._log_file_name) 146 self._wsout = self._filesystem.open_text_file_for_writing(self._output_log_path) 149 147 self._copy_webkit_test_files() 150 148 151 149 def _spawn_process(self): 152 self._stdout_data = None 153 self._stderr_data = None 154 if self._wsout: 155 self._process = self._executive.popen(self._start_cmd, cwd=self._doc_root_path, shell=False, stdin=self._executive.PIPE, stdout=self._wsout, stderr=self._wsout) 156 else: 157 self._process = self._executive.popen(self._start_cmd, cwd=self._doc_root_path, shell=False, stdin=self._executive.PIPE, stdout=self._executive.PIPE, stderr=self._executive.STDOUT) 150 self._process = self._executive.popen(self._start_cmd, cwd=self._doc_root_path, shell=False, stdin=self._executive.PIPE, stdout=self._wsout, stderr=self._wsout) 158 151 self._filesystem.write_text_file(self._pid_file, str(self._process.pid)) 159 152 … … 195 188 196 189 if self._process: 197 (self._stdout_data, self._stderr_data) =self._process.communicate(input='\n')190 self._process.communicate(input='\n') 198 191 if self._wsout: 199 192 self._wsout.close()
Note: See TracChangeset
for help on using the changeset viewer.