standalone: Log things we are running via with_logging
PATCH v2 1/1 standalone: Log things we are running via with_logging
Turning on set -x generally in this script is too verbose, so run the command in a subshell which sets -x.
Signed-off-by Ian Campbell <[email protected]>
---
v2: Use set -x in a sub shell
--- standalone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
standalone +1 -1
@@ -195,7 +195,7 @@ with_logging() { if command -v savelog >/dev/null ; then savelog -c 300 -n "$log" >/dev/null fi - "$@" 2>&1 | tee "$log" + ( set -x ; "$@" ) 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then echo "FAILED rc=${rc}" >&2
Signature · 1 line
2.6.1
Ian Campbell writes ("[PATCH OSSTEST v2] standalone: Log things we are running via with_logging"):
Quoted 4 lines
Turning on set -x generally in this script is too verbose, so run the command in a subshell which sets -x.
Signed-off-by Ian Campbell <[email protected]>
Acked-by Ian Jackson <[email protected]>
(I will pick this up into my queue)