OLD | NEW |
1 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) | 1 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) |
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 | 4 # modification, are permitted provided that the following conditions |
5 # are met: | 5 # are met: |
6 # 1. Redistributions of source code must retain the above copyright | 6 # 1. Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # 2. Redistributions in binary form must reproduce the above copyright | 8 # 2. Redistributions in binary form must reproduce the above copyright |
9 # notice, this list of conditions and the following disclaimer in the | 9 # notice, this list of conditions and the following disclaimer in the |
10 # documentation and/or other materials provided with the distribution. | 10 # documentation and/or other materials provided with the distribution. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 def test_paths_convertible(self): | 54 def test_paths_convertible(self): |
55 paths = ["/WebKit/foo1.txt", "/WebKit/foo2.txt"] | 55 paths = ["/WebKit/foo1.txt", "/WebKit/foo2.txt"] |
56 paths = self._change_directory(checkout_root=self._checkout_root, paths=
paths) | 56 paths = self._change_directory(checkout_root=self._checkout_root, paths=
paths) |
57 self._assert_result(paths, ["foo1.txt", "foo2.txt"], [], self._checkout_
root) | 57 self._assert_result(paths, ["foo1.txt", "foo2.txt"], [], self._checkout_
root) |
58 | 58 |
59 def test_with_scm_paths_unconvertible(self): | 59 def test_with_scm_paths_unconvertible(self): |
60 paths = ["/WebKit/foo1.txt", "/outside/foo2.txt"] | 60 paths = ["/WebKit/foo1.txt", "/outside/foo2.txt"] |
61 paths = self._change_directory(checkout_root=self._checkout_root, paths=
paths) | 61 paths = self._change_directory(checkout_root=self._checkout_root, paths=
paths) |
62 log_messages = [ | 62 log_messages = [ |
63 """WARNING: Path-dependent style checks may not work correctly: | 63 """WARNING: Path-dependent style checks may not work correctly: |
64 | 64 |
65 One of the given paths is outside the WebKit checkout of the current | 65 One of the given paths is outside the WebKit checkout of the current |
66 working directory: | 66 working directory: |
67 | 67 |
68 Path: /outside/foo2.txt | 68 Path: /outside/foo2.txt |
69 Checkout root: /WebKit | 69 Checkout root: /WebKit |
70 | 70 |
71 Pass only files below the checkout root to ensure correct results. | 71 Pass only files below the checkout root to ensure correct results. |
72 See the help documentation for more info. | 72 See the help documentation for more info. |
73 | 73 |
74 """] | 74 """] |
75 self._assert_result(paths, paths, log_messages, self._original_directory
) | 75 self._assert_result(paths, paths, log_messages, self._original_directory
) |
OLD | NEW |