diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2021-06-10 19:25:04 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2021-06-10 19:25:45 (GMT) |
commit | 0843ae874643a39a42a11a91d1fbb72c93d43d9b (patch) | |
tree | 59008d9349edf4482cff9055618d42aa1f01f737 /misc | |
parent | 8fa4d05fea5140f80ff5f4629d19c6ce0d6f5cca (diff) | |
download | Ninja-0843ae874643a39a42a11a91d1fbb72c93d43d9b.zip Ninja-0843ae874643a39a42a11a91d1fbb72c93d43d9b.tar.gz Ninja-0843ae874643a39a42a11a91d1fbb72c93d43d9b.tar.bz2 |
Put Info output back on stdout instead of stderr
See comment in #1899. Also adds two tests to output_test.py which check
this behaviour by relying on Python's suprocess.check_output not piping
stderr.
Diffstat (limited to 'misc')
-rw-r--r--[-rwxr-xr-x] | misc/output_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/output_test.py b/misc/output_test.py index 6858e21..45698f1 100755..100644 --- a/misc/output_test.py +++ b/misc/output_test.py @@ -119,6 +119,7 @@ red def test_status(self): self.assertEqual(run(''), 'ninja: no work to do.\n') + self.assertEqual(run('', pipe=True), 'ninja: no work to do.\n') def test_ninja_status_default(self): 'Do we show the default status by default?' @@ -129,5 +130,9 @@ red output = run(Output.BUILD_SIMPLE_ECHO, flags='--quiet') self.assertEqual(output, 'do thing\n') + def test_entering_directory_on_stdout(self): + output = run(Output.BUILD_SIMPLE_ECHO, flags='-C$PWD', pipe=True) + self.assertEqual(output.splitlines()[0][:25], "ninja: Entering directory") + if __name__ == '__main__': unittest.main() |