Skip to content

Commit 12a4de6

Browse files
committed
pyterm: use clean output by default
Do not prepend the output with the timestamp and the loglevel (always INFO) by default. This gives a different behavior with the other RIOT_TERMINAL. Also, CI uses `picocom` by default so does not have timestamp which can make a test fail locally when it works in CI. Or work in native and fail on a board as native does not have this decoration. Also it will help with test when you need to get the output of the node and not from your terminal program. The previous behavior can be achieved by using the environment variable PYTERMFLAGS='--format "%(asctime)s - %(levelname)s # %(message)s" So for example PYTERMFLAGS='-f "%(asctime)s - %(levelname)s # %(message)s"' \ RIOT_TERMINAL=pyterm BOARD=samr21-xpro make -C tests/shell/ flash term
1 parent 5019480 commit 12a4de6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dist/tools/pyterm/pyterm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ defaultfile = "pyterm-" + defaulthostname + ".conf"
8686
defaultrunname = "default-run"
8787

8888
# default logging prefix format string
89-
default_fmt_str = '%(asctime)s - %(levelname)s # %(message)s'
89+
# Can use '%(asctime)s # %(message)s' to get the timestamp added
90+
default_fmt_str = '%(message)s'
9091

9192
# default newline setting
9293
defaultnewline = "LF"

0 commit comments

Comments
 (0)