| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 """Start and stop the crash service as it is used by the layout tests.""" | 29 """Start and stop the crash service as it is used by the layout tests.""" |
| 30 | 30 |
| 31 from webkitpy.layout_tests.servers import server_base | 31 from webkitpy.layout_tests.servers import server_base |
| 32 | 32 |
| 33 | 33 |
| 34 class CrashService(server_base.ServerBase): | 34 class CrashService(server_base.ServerBase): |
| 35 | 35 |
| 36 def __init__(self, port_obj, crash_dumps_dir): | 36 def __init__(self, port_obj, crash_dumps_dir): |
| 37 """Args: | 37 """Args: |
| 38 crash_dumps_dir: the absolute path to the directory where to store cra
sh dumps | 38 crash_dumps_dir: the absolute path to the directory where to store cra
sh dumps |
| 39 """ | 39 """ |
| 40 # Webkit tests | 40 # Webkit tests |
| 41 super(CrashService, self).__init__(port_obj, port_obj.default_results_di
rectory()) | 41 super(CrashService, self).__init__(port_obj, port_obj.default_results_di
rectory()) |
| 42 self._name = 'CrashService' | 42 self._name = 'CrashService' |
| 43 self._crash_dumps_dir = crash_dumps_dir | 43 self._crash_dumps_dir = crash_dumps_dir |
| 44 self._env = None | 44 self._env = None |
| 45 | 45 |
| 46 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % se
lf._name) | 46 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % se
lf._name) |
| 47 self._start_cmd = [self._port_obj._path_to_crash_service(), | 47 self._start_cmd = [self._port_obj._path_to_crash_service(), |
| 48 '--dumps-dir=%s' % self._crash_dumps_dir, | 48 '--dumps-dir=%s' % self._crash_dumps_dir, |
| 49 '--no-window'] | 49 '--no-window'] |
| OLD | NEW |