| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 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 21 matching lines...) Expand all Loading... |
| 32 from webkitpy.layout_tests.port import base | 32 from webkitpy.layout_tests.port import base |
| 33 from webkitpy.layout_tests.port import win | 33 from webkitpy.layout_tests.port import win |
| 34 | 34 |
| 35 | 35 |
| 36 _log = logging.getLogger(__name__) | 36 _log = logging.getLogger(__name__) |
| 37 | 37 |
| 38 | 38 |
| 39 class LinuxPort(base.Port): | 39 class LinuxPort(base.Port): |
| 40 port_name = 'linux' | 40 port_name = 'linux' |
| 41 | 41 |
| 42 SUPPORTED_VERSIONS = ('trusty',) | 42 SUPPORTED_VERSIONS = ('trusty', 'devtools-1.2') |
| 43 | 43 |
| 44 FALLBACK_PATHS = {} | 44 FALLBACK_PATHS = {} |
| 45 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() | 45 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() |
| 46 FALLBACK_PATHS['devtools-1.2'] = ['linux-devtools-1.2'] |
| 46 | 47 |
| 47 DEFAULT_BUILD_DIRECTORIES = ('out',) | 48 DEFAULT_BUILD_DIRECTORIES = ('out',) |
| 48 | 49 |
| 49 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' | 50 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' |
| 50 | 51 |
| 51 @classmethod | 52 @classmethod |
| 52 def determine_full_port_name(cls, host, options, port_name): | 53 def determine_full_port_name(cls, host, options, port_name): |
| 53 if port_name.endswith('linux'): | 54 if port_name.endswith('linux'): |
| 54 assert host.platform.is_linux() | 55 assert host.platform.is_linux() |
| 55 version = host.platform.os_version | 56 version = host.platform.os_version |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 result = self._check_file_exists(self.path_to_apache(), "apache2") | 147 result = self._check_file_exists(self.path_to_apache(), "apache2") |
| 147 result = self._check_file_exists(self.path_to_apache_config_file(), "apa
che2 config file") and result | 148 result = self._check_file_exists(self.path_to_apache_config_file(), "apa
che2 config file") and result |
| 148 if not result: | 149 if not result: |
| 149 _log.error(' Please install using: "sudo apt-get install apache2
libapache2-mod-php5"') | 150 _log.error(' Please install using: "sudo apt-get install apache2
libapache2-mod-php5"') |
| 150 _log.error('') | 151 _log.error('') |
| 151 return result | 152 return result |
| 152 | 153 |
| 153 def _path_to_driver(self, target=None): | 154 def _path_to_driver(self, target=None): |
| 154 binary_name = self.driver_name() | 155 binary_name = self.driver_name() |
| 155 return self._build_path_with_target(target, binary_name) | 156 return self._build_path_with_target(target, binary_name) |
| OLD | NEW |