Changeset: 882aeda2cc5a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=882aeda2cc5a Modified Files: testing/Mz.py.in Branch: default Log Message:
Abbreviate progress message. diffs (16 lines): diff --git a/testing/Mz.py.in b/testing/Mz.py.in --- a/testing/Mz.py.in +++ b/testing/Mz.py.in @@ -1353,7 +1353,11 @@ def Prompt(cmd) : def progress(count, total, test): perc = round((count/total) * 100) if total and count else 0 print('\r', ' '*(ttywidth or 100), end='', sep='') - print('\r','[{}/{}] ({}%) {}'.format(count, total, perc, test), end='', sep='', flush=True) + s = '[{}/{}] ({}%) {}'.format(count, total, perc, test) + if len(s) > ttywidth: + test = test[len(s)-ttywidth:] + s = '[{}/{}] ({}%) {}'.format(count, total, perc, test) + print('\r', s, end='', sep='', flush=True) def getkids(): # return a dictionary with process IDs as key and a list of child _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list