google-code-export / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

Tests script should print to stderr only if the test was successful #617

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run "python tests/run_data_tests.py 1>tests_out 2>tests_err"
2. Look at tests_err file when the tests were finished

What is the expected output? What do you see instead?
That file should contain only output from failed tests (like the failure 
described in issue 552).
However, even if all tests were ran successfully, that file is still not empty.

What version of the product are you using?
gdata-python-client 2.0.17, python 2.7.3

Please provide any additional information below.
Some distibutions (like Debian) consider tests as failed if the test script 
prints to stderr.

Also, it will be great if the script returned non-zero exit code if the tests 
failed.

Original issue reported on code.google.com by Mitya57 on 15 May 2012 at 7:49