]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: Avoid escape chars when printing to non-terminals
authorPhil Sutter <phil@nwl.cc>
Sat, 23 Mar 2024 02:09:41 +0000 (03:09 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 12 Apr 2024 12:41:34 +0000 (14:41 +0200)
commit83ed57d587afb248dc5dc72006b247319193008d
treea93b8327cd4bfd528620cbe4f3f8f01d8df903f3
parent07c9733a4b4ab5b6f6fb94f305d323528a058823
tests: shell: Avoid escape chars when printing to non-terminals

Print the 'EXECUTING' status line only if stdout is a terminal, the
mandatory following escape sequence to delete it messes up log file
contents.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/shell/run-tests.sh