Changeset 150128 in webkit


Ignore:
Timestamp:
May 15, 2013 10:23:44 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Allow http tests on Arch Linux
https://bugs.webkit.org/show_bug.cgi?id=116155

Patch by Peter Gal <galpeter@inf.u-szeged.hu> on 2013-05-15
Reviewed by Ryosuke Niwa.

Tools:

  • Scripts/webkitpy/port/base.py:

(Port._is_arch_based): Added check for /etc/arch-release file.
(Port._apache_config_file_name_for_platform): Call the check.

  • Scripts/webkitpy/port/port_testcase.py:

(test_linux_distro_detection): Testcase added.

LayoutTests:

  • http/conf/archlinux-httpd.conf: Added.
Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r150113 r150128  
     12013-05-15  Peter Gal  <galpeter@inf.u-szeged.hu>
     2
     3        Allow http tests on Arch Linux
     4        https://bugs.webkit.org/show_bug.cgi?id=116155
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * http/conf/archlinux-httpd.conf: Added.
     9
    1102013-05-15  Zan Dobersek  <zdobersek@igalia.com>
    211
  • trunk/Tools/ChangeLog

    r150126 r150128  
     12013-05-15  Peter Gal  <galpeter@inf.u-szeged.hu>
     2
     3        Allow http tests on Arch Linux
     4        https://bugs.webkit.org/show_bug.cgi?id=116155
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * Scripts/webkitpy/port/base.py:
     9        (Port._is_arch_based): Added check for /etc/arch-release file.
     10        (Port._apache_config_file_name_for_platform): Call the check.
     11        * Scripts/webkitpy/port/port_testcase.py:
     12        (test_linux_distro_detection): Testcase added.
     13
    1142013-05-15  Peter Gal  <galpeter@inf.u-szeged.hu>
    215
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r148996 r150128  
    12101210        return self._filesystem.exists('/etc/debian_version')
    12111211
     1212    def _is_arch_based(self):
     1213        return self._filesystem.exists('/etc/arch-release')
     1214
    12121215    def _apache_version(self):
    12131216        config = self._executive.run_command([self._path_to_apache(), '-v'])
     
    12231226            if self._is_debian_based():
    12241227                return 'apache2-debian-httpd.conf'
     1228            if self._is_arch_based():
     1229                return 'archlinux-httpd.conf'
    12251230        # All platforms use apache2 except for CYGWIN (and Mac OS X Tiger and prior, which we no longer support).
    12261231        return "apache2-httpd.conf"
  • trunk/Tools/Scripts/webkitpy/port/port_testcase.py

    r148996 r150128  
    556556        self.assertTrue(port._is_debian_based())
    557557
     558        port._filesystem = MockFileSystem({'/etc/arch-release': ''})
     559        self.assertFalse(port._is_redhat_based())
     560        self.assertTrue(port._is_arch_based())
     561
    558562    def test_apache_config_file_name_for_platform(self):
    559563        port = TestWebKitPort()
Note: See TracChangeset for help on using the changeset viewer.