Commit 14e48b28 authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: bikeshed stdout, show only elapsed time of long commands

parent 5f119be2
......@@ -35,6 +35,8 @@ MOD_BLANKS = 'b'
MOD_MULTI_LINES = 'l'
MOD_KEEP_LEADING_TRAILING_SPACES = 'z'
SHOW_ELAPSED_TIME_ABOVE = 1.0
RE_MODIFIERS = re.compile('^(\D*)(\d*)(\D*)$')
EXT_SHOULD = '.should'
......@@ -701,7 +703,8 @@ class FileSet():
if not verbose:
print(f, end=' ')
if s.elapsed_time:
print(s.str_elapsed_time())
if s.elapsed_time >= SHOW_ELAPSED_TIME_ABOVE:
print(s.str_elapsed_time())
print(s.str_status())
print('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment