Changeset: ec947cdcf8fb for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ec947cdcf8fb
Modified Files:
testing/Mtest.py.in
Branch: mtest
Log Message:
pretty print test output
diffs (44 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1332,12 +1332,21 @@ def RunTest(env, TST, BusyPorts, COND, o
t1 = time.time()
TX = t1 - t0
- if not quiet:
- STDOUT.write(" %7.3fs " % TX)
-
- if not verbose and not quiet:
+
+ # print test result
+ if quiet:
+ if exit_code == F_OK:
+ prgreen('.')
+ else:
+ prblack('.')
+ else:
+ STDOUT.write('\t{}'.format(TST))
+ STDOUT.write("\t%7.3fs\t" % TX)
print_err_code(exit_code)
- print('\t{}'.format(TST))
+ if reason:
+ print('\t{}'.format(reason))
+ else:
+ print()
return TX, exit_code, reason, links
### RunTest(env, TST, BusyPorts, COND, oktests) #
@@ -3151,9 +3160,11 @@ def main(argv) :
sys.exit(1)
else:
if quiet:
- pass
+ print()
else:
- print("No differences encountered during testing.")
+ prgreen('OK')
+ print()
+ print('Ran {} test in {:7.3f}'.format(num_tests, t_))
sys.exit(0)
finally:
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list