OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 """ | 7 """ |
4 Verifies behavior for different action configuration errors: | 8 Verifies behavior for different action configuration errors: |
5 exit status of 1, and the expected error message must be in stderr. | 9 exit status of 1, and the expected error message must be in stderr. |
6 """ | 10 """ |
7 | 11 |
8 import TestGyp | 12 import TestGyp |
9 | 13 |
10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
11 | 15 |
12 | 16 |
13 test.run_gyp('action_missing_name.gyp', chdir='src', status=1, stderr=None) | 17 test.run_gyp('action_missing_name.gyp', chdir='src', status=1, stderr=None) |
14 expect = [ | 18 expect = [ |
15 "Anonymous action in target broken_actions2. An action must have an 'action_n
ame' field.", | 19 "Anonymous action in target broken_actions2. An action must have an 'action_n
ame' field.", |
16 ] | 20 ] |
17 test.must_contain_all_lines(test.stderr(), expect) | 21 test.must_contain_all_lines(test.stderr(), expect) |
18 | 22 |
19 | 23 |
20 test.pass_test() | 24 test.pass_test() |
OLD | NEW |