From 254fc376a5d013d189d99be3dbb6a9297ff38b4c Mon Sep 17 00:00:00 2001 From: Vincent Mora Date: Mon, 30 Jan 2017 07:44:18 +0100 Subject: [PATCH] added verbose option to tests --- test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.py b/test.py index 94eaacd..76bd3d7 100755 --- a/test.py +++ b/test.py @@ -37,6 +37,8 @@ out, err = child.communicate() if child.returncode: sys.stdout.write("failed\n") + if len(sys.argv) == 2 and sys.argv[1] == '-v': + sys.stdout.write(err) failed += 1 else: sys.stdout.write("ok\n")