Changeset: fd6dcb91d299 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fd6dcb91d299
Modified Files:
        testing/Mtest.py.in
Branch: Aug2011
Log Message:

Mtest: show timeouts when output is a tty.
The idea is that when the output is a tty you get an idea of how long
a particular test might take.  Since the timeouts are overwritten to
save space, it's only useful when writing to a tty.


diffs (13 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2353,6 +2353,9 @@ def DoIt(env, SERVER, CALL, TST, EXT, PR
                       PRELUDE, TIMEOUT, CTIMEOUT, STIMEOUT))
     else:
         STDOUT.write('%s%-*s ' % (prompt(), length, TST))
+        if os.isatty(STDOUT.fileno()):
+            s = '(<=%d,%d,%d)' % (TIMEOUT, CTIMEOUT, STIMEOUT)
+            STDOUT.write(s + '\b' * len(s))
 
     try:
         STDOUT.flush()
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to