Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py

Issue 1148653011: msvs: Make sure stdout/stderr from rule commands get logged (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/msvs/rules_stdout_stderr/dummy.foo ('k') | test/msvs/rules_stdout_stderr/rule_stderr.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2015 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
7 """ Verifies that stdout and stderr from rules get logged in the build's
8 stdout."""
9
10 import sys
11 import TestGyp
12
13 if sys.platform == 'win32':
14 test = TestGyp.TestGyp(formats=['msvs'])
15
16 test.run_gyp('rules-stdout-stderr.gyp')
17 test.build('rules-stdout-stderr.gyp', test.ALL)
18
19 expected_stdout_lines = [
20 'testing stdout',
21 'This will go to stdout',
22
23 # Note: stderr output from rules will go to the build's stdout.
24 'testing stderr',
25 'This will go to stderr',
26 ]
27 test.must_contain_all_lines(test.stdout(), expected_stdout_lines)
28
29 test.pass_test()
OLDNEW
« no previous file with comments | « test/msvs/rules_stdout_stderr/dummy.foo ('k') | test/msvs/rules_stdout_stderr/rule_stderr.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698