From: Oleg Broytman Date: Sun, 10 Apr 2016 11:20:46 +0000 (+0300) Subject: Simplify run_all output X-Git-Tag: 0.0.4~17 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4c253d9b2f16b24d7c8847286cf1a64ed1f4d726;p=m_librarian.git Simplify run_all output --- diff --git a/tests/run_all.py b/tests/run_all.py index 51d3d6a..2e217bf 100755 --- a/tests/run_all.py +++ b/tests/run_all.py @@ -31,14 +31,8 @@ def main(): os.environ["PYTHONPATH"] = os.curdir for test in sorted(tests): - sys.stdout.write("Test: %s... " % test) - sys.stdout.flush() - rc = subprocess.call((sys.executable, '-m', test)) - if rc: - sys.stdout.write("ERROR\n") - else: - sys.stdout.write("Ok\n") - sys.stdout.flush() + print test + subprocess.call((sys.executable, '-m', test)) if __name__ == '__main__': main()