Changeset 215735 in webkit


Ignore:
Timestamp:
Apr 25, 2017 9:10:03 AM (7 years ago)
Author:
clopez@igalia.com
Message:

[GTK] Improve an unit test for the JHBuild wrapper.
https://bugs.webkit.org/show_bug.cgi?id=168036

Unreviewed follow-up patch after r215727

  • Scripts/webkitpy/port/base_unittest.py:

(test_jhbuild_wrapper): Improve the unit test by ensuring the directory
wasn't there before calling MockFileSystem.maybe_make_directory(), and
also that it exists after calling it.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r215727 r215735  
     12017-04-25  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [GTK] Improve an unit test for the JHBuild wrapper.
     4        https://bugs.webkit.org/show_bug.cgi?id=168036
     5
     6        Unreviewed follow-up patch after r215727
     7
     8        * Scripts/webkitpy/port/base_unittest.py:
     9        (test_jhbuild_wrapper): Improve the unit test by ensuring the directory
     10        wasn't there before calling MockFileSystem.maybe_make_directory(), and
     11        also that it exists after calling it.
     12
    1132017-04-25  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    214
  • trunk/Tools/Scripts/webkitpy/port/base_unittest.py

    r215727 r215735  
    399399        port = self.make_port(port_name='foo')
    400400        port.port_name = 'foo'
     401        jhbuild_path = port.path_from_webkit_base('WebKitBuild', 'Dependencies%s' % port.port_name.upper())
     402        self.assertFalse(port._filesystem.isdir(jhbuild_path))
    401403        self.assertFalse(port._should_use_jhbuild())
    402         port._filesystem.maybe_make_directory(port.path_from_webkit_base('WebKitBuild', 'Dependencies%s' % port.port_name.upper()))
     404        port._filesystem.maybe_make_directory(jhbuild_path)
     405        self.assertTrue(port._filesystem.isdir(jhbuild_path))
    403406        self.assertTrue(port._should_use_jhbuild())
    404407
Note: See TracChangeset for help on using the changeset viewer.