[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v2] 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 <ian.campbell@xxxxxxxxxx> --- v2: Use set -x in a sub shell --- standalone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone b/standalone index c804b74..499cb6c 100755 --- a/standalone +++ b/standalone @@ -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 -- 2.6.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |